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 | |
parent | e70e6f6848e13108551be2b1f38df7304f3df2c1 (diff) | |
download | upstream-c9f3e7082ff7d08851e71bacbebaf4c2ae5be340.tar.gz upstream-c9f3e7082ff7d08851e71bacbebaf4c2ae5be340.tar.bz2 upstream-c9f3e7082ff7d08851e71bacbebaf4c2ae5be340.zip |
ramips: disable watchdog on sysupgrade
SVN-Revision: 27380
Diffstat (limited to 'target/linux')
-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 c541ea0a13..b701938f25 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 |