aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/kirkwood/base-files/lib/upgrade/platform.sh
blob: 6d63a0a4b7602850f7aea145340136349d547f40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
RAMFS_COPY_BIN='fw_printenv fw_setenv'
RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'

REQUIRE_IMAGE_METADATA=1

platform_check_image() {
	return 0
}

platform_do_upgrade() {
	local board="$(board_name)"

	case "$board" in
	"linksys,audi"|\
	"linksys,viper")
		platform_do_upgrade_linksys "$1"
		;;
	*)
		nand_do_upgrade "$1"
		;;
	esac
}