2013-09-17 21:46:10 +00:00
|
|
|
PART_NAME=firmware
|
2016-11-17 10:41:08 +00:00
|
|
|
REQUIRE_IMAGE_METADATA=1
|
2010-12-12 22:57:16 +00:00
|
|
|
|
|
|
|
platform_check_image() {
|
2016-11-20 19:07:18 +00:00
|
|
|
return 0
|
2010-12-12 22:57:16 +00:00
|
|
|
}
|
|
|
|
|
2015-09-15 06:13:07 +00:00
|
|
|
platform_pre_upgrade() {
|
2017-03-17 15:21:30 +00:00
|
|
|
local board=$(board_name)
|
2015-09-15 06:13:07 +00:00
|
|
|
|
|
|
|
case "$board" in
|
2017-04-08 09:16:21 +00:00
|
|
|
bt,homehub-v2b|bt,homehub-v3a|bt,homehub-v5a|zyxel,p-2812hnu-f1|zyxel,p-2812hnu-f3)
|
2015-09-15 06:13:07 +00:00
|
|
|
nand_do_upgrade $1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
2010-12-12 22:57:16 +00:00
|
|
|
# use default for platform_do_upgrade()
|
|
|
|
|
|
|
|
disable_watchdog() {
|
|
|
|
killall watchdog
|
|
|
|
( ps | grep -v 'grep' | grep '/dev/watchdog' ) && {
|
|
|
|
echo 'Could not disable watchdog'
|
|
|
|
return 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
append sysupgrade_pre_upgrade disable_watchdog
|