openwrtv4/target/linux/cns3xxx/base-files/lib/upgrade/platform.sh
Mathias Kresin c4ac02ffca treewide: remove obsolete sysupgrade watchdog kill
The watchdog kill command was meant for busybox watchdog. Busybox watchdog
was replaced by the procd watchdog mid 2013 with commit df7ce9301a
("busybox: disable the watchdog utility by default"), which makes the kill
command obsolete since quite some time.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2018-02-16 14:44:02 +01:00

19 lines
272 B
Bash

PART_NAME=firmware
CI_BLKSZ=65536
platform_check_image() {
local magic="$(get_magic_long "$1")"
[ "$#" -gt 1 ] && return 1
[ "$magic" != "27051956" ] && {
echo "Invalid image type."
return 1
}
return 0
}
platform_do_upgrade() {
default_do_upgrade "$ARGV"
}