maemo-kexec: Kick the watchdog before kexec-ing to make sure it doesn't expire before...
authormb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 7 Mar 2011 00:39:09 +0000 (00:39 +0000)
committermb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 7 Mar 2011 00:39:09 +0000 (00:39 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@25918 3c298f89-4303-0410-b956-a3cf2f4a3e73

utils/maemo-kexec/files/sbin/bootmaemo

index 498b096..14f85b1 100755 (executable)
@@ -1,6 +1,11 @@
 #!/bin/sh
 
 set -e
-/bin/sync
+
+sync
+
+killall -q watchdog || true
+echo 1 >/dev/watchdog
+
 /usr/sbin/kexec --load /boot/maemo.zImage --append "root=1f03 rootfstype=jffs2 ro console=tty0 console=ttyMTD5"
 /usr/sbin/kexec --exec