ramips: disable watchdog on sysupgrade
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 3 Jul 2011 15:01:43 +0000 (15:01 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 3 Jul 2011 15:01:43 +0000 (15:01 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27380 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/ramips/base-files/lib/upgrade/platform.sh

index c541ea0..b701938 100755 (executable)
@@ -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