aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-07-03 15:01:43 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-07-03 15:01:43 +0000
commitc9f3e7082ff7d08851e71bacbebaf4c2ae5be340 (patch)
treea3547b41a99fc64b8f35427b906dc9b2f68eaa10
parente70e6f6848e13108551be2b1f38df7304f3df2c1 (diff)
downloadupstream-c9f3e7082ff7d08851e71bacbebaf4c2ae5be340.tar.gz
upstream-c9f3e7082ff7d08851e71bacbebaf4c2ae5be340.tar.bz2
upstream-c9f3e7082ff7d08851e71bacbebaf4c2ae5be340.zip
ramips: disable watchdog on sysupgrade
SVN-Revision: 27380
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh10
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