2014-11-26 09:00:08 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2014 OpenWrt.org
|
|
|
|
#
|
|
|
|
|
2017-01-07 13:46:03 +00:00
|
|
|
REQUIRE_IMAGE_METADATA=1
|
2014-11-26 09:00:08 +00:00
|
|
|
|
|
|
|
platform_check_image() {
|
2017-05-12 20:36:07 +00:00
|
|
|
local board=$(board_name)
|
2014-11-26 09:00:08 +00:00
|
|
|
|
|
|
|
[ "$ARGC" -gt 1 ] && return 1
|
|
|
|
|
|
|
|
nand_do_platform_check $board $1
|
|
|
|
return $?
|
|
|
|
}
|
|
|
|
|
2015-09-24 09:18:59 +00:00
|
|
|
platform_pre_upgrade() {
|
|
|
|
nand_do_upgrade $1
|
|
|
|
}
|
|
|
|
|
2014-11-26 09:00:08 +00:00
|
|
|
disable_watchdog() {
|
|
|
|
killall watchdog
|
|
|
|
( ps | grep -v 'grep' | grep '/dev/watchdog' ) && {
|
|
|
|
echo 'Could not disable watchdog'
|
|
|
|
return 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
append sysupgrade_pre_upgrade disable_watchdog
|