aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/apm821xx/base-files/lib/upgrade/platform.sh
blob: 32e87513f3d2f8b40c94912588c1595fdb7e6601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/sh

PART_NAME=firmware
REQUIRE_IMAGE_METADATA=1

platform_check_image() {
	local board=$(board_name)

	case "$board" in
	wd,mybooklive)
		mbl_do_platform_check "$1"
		return $?;
		;;
	*)
		return 0
		;;
	esac
}

platform_do_upgrade() {
	local board=$(board_name)

	case "$board" in
	wd,mybooklive)
		mbl_do_upgrade "$1"
		;;
	meraki,mr24|\
	meraki,mx60|\
	netgear,wndap620|\
	netgear,wndap660|\
	netgear,wndr4700)
		nand_do_upgrade "$1"
		;;
	*)
		default_do_upgrade "$1"
		;;
	esac
}

platform_copy_config() {
	local board=$(board_name)

	case "$board" in
	wd,mybooklive|\
	wd,mybooklive-duo)
		mbl_copy_config
		;;

	*)
		;;
	esac
}