From: Gabor Juhos Date: Sun, 3 Jul 2011 15:01:43 +0000 (+0000) Subject: ramips: disable watchdog on sysupgrade X-Git-Tag: reboot~16403 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c9f3e7082ff7d08851e71bacbebaf4c2ae5be340;p=openwrt%2Fstaging%2Fblogic.git ramips: disable watchdog on sysupgrade SVN-Revision: 27380 --- diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index c541ea0a136c..b701938f25ec 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