Browse Source

ramips: disable watchdog on sysupgrade

SVN-Revision: 27380
Gabor Juhos 14 years ago
parent
commit
c9f3e7082f
1 changed files with 10 additions and 0 deletions
  1. 10 0
      target/linux/ramips/base-files/lib/upgrade/platform.sh

+ 10 - 0
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