maemo-kexec: Kick the watchdog before kexec-ing to make sure it doesn't expire before...
authorMichael Büsch <mb@bu3sch.de>
Mon, 7 Mar 2011 00:39:09 +0000 (00:39 +0000)
committerMichael Büsch <mb@bu3sch.de>
Mon, 7 Mar 2011 00:39:09 +0000 (00:39 +0000)
SVN-Revision: 25918

utils/maemo-kexec/files/sbin/bootmaemo

index 498b096f389f1cf24920f5d14dab2b770b3dd34a..14f85b1e772c466e2f21f702cba4c83269baf074 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