2013-02-21 19:20:34 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2011 OpenWrt.org
|
|
|
|
#
|
|
|
|
|
|
|
|
PART_NAME=firmware
|
2017-10-24 04:57:29 +00:00
|
|
|
REQUIRE_IMAGE_METADATA=1
|
2013-02-21 19:20:34 +00:00
|
|
|
|
|
|
|
platform_check_image() {
|
2017-10-24 04:57:29 +00:00
|
|
|
return 0
|
2013-02-21 19:20:34 +00:00
|
|
|
}
|
|
|
|
|
2017-10-24 04:57:29 +00:00
|
|
|
# use default for platform_do_upgrade()
|
2013-02-21 19:20:34 +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
|