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 | 25af94c5859a8d017c1abb29f4f5ef4e67ea3504 (patch) | |
tree | e5e4c3874bebad88dc1d71a469da1e13778ff73a /target/linux/ramips/base-files | |
parent | 9c99259af6693de634b47ffebbb448b6985b2554 (diff) | |
download | master-187ad058-25af94c5859a8d017c1abb29f4f5ef4e67ea3504.tar.gz master-187ad058-25af94c5859a8d017c1abb29f4f5ef4e67ea3504.tar.bz2 master-187ad058-25af94c5859a8d017c1abb29f4f5ef4e67ea3504.zip |
ramips: disable watchdog on sysupgrade
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27380 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files')
-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 |