openwrtv3/target/linux/kirkwood/base-files/lib/upgrade/platform.sh
Mathias Kresin c9e2c35f46 kirkwood: use the generic board detect
Drop the target specific detection function in favour of the generic
one provided by base-files.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2018-01-09 22:06:55 +01:00

22 lines
362 B
Bash

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 1
}
platform_do_upgrade() {
local board="$(board_name)"
case "$board" in
"linksys,audi"|\
"linksys,viper")
platform_do_upgrade_linksys "$ARGV"
;;
*)
nand_do_upgrade "$ARGV"
;;
esac
}