diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-07-03 15:01:43 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-07-03 15:01:43 +0000 |
commit | c9f3e7082ff7d08851e71bacbebaf4c2ae5be340 (patch) | |
tree | a3547b41a99fc64b8f35427b906dc9b2f68eaa10 /target/linux/ramips | |
parent | e70e6f6848e13108551be2b1f38df7304f3df2c1 (diff) | |
download | mtk-20170518-c9f3e7082ff7d08851e71bacbebaf4c2ae5be340.zip mtk-20170518-c9f3e7082ff7d08851e71bacbebaf4c2ae5be340.tar.gz mtk-20170518-c9f3e7082ff7d08851e71bacbebaf4c2ae5be340.tar.bz2 |
ramips: disable watchdog on sysupgrade
SVN-Revision: 27380
Diffstat (limited to 'target/linux/ramips')
-rwxr-xr-x | target/linux/ramips/base-files/lib/upgrade/platform.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index c541ea0..b701938 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -36,3 +36,13 @@ platform_do_upgrade() { ;; esac } + +disable_watchdog() { + killall watchdog + ( ps | grep -v 'grep' | grep '/dev/watchdog' ) && { + echo 'Could not disable watchdog' + return 1 + } +} + +append sysupgrade_pre_upgrade disable_watchdog |