ramips: disable watchdog on sysupgrade
authorGabor Juhos <juhosg@openwrt.org>
Sun, 3 Jul 2011 15:01:43 +0000 (15:01 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 3 Jul 2011 15:01:43 +0000 (15:01 +0000)
SVN-Revision: 27380

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

index c541ea0a136c8a4a029ed02e77dcfd69499dc317..b701938f25ecccbcf2bc9d2bda81bde5614facbf 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