ramips: disable watchdog on sysupgrade
[openwrt.git] / 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
This page took 0.023734 seconds and 4 git commands to generate.