From 36ac8fb13d9ee26a146f5c91ee89a84b84f0755a Mon Sep 17 00:00:00 2001 From: mb Date: Mon, 7 Mar 2011 00:39:09 +0000 Subject: [PATCH] maemo-kexec: Kick the watchdog before kexec-ing to make sure it doesn't expire before the new OS kernel was loaded. git-svn-id: svn://svn.openwrt.org/openwrt/packages@25918 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- utils/maemo-kexec/files/sbin/bootmaemo | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utils/maemo-kexec/files/sbin/bootmaemo b/utils/maemo-kexec/files/sbin/bootmaemo index 498b096f3..14f85b1e7 100755 --- a/utils/maemo-kexec/files/sbin/bootmaemo +++ b/utils/maemo-kexec/files/sbin/bootmaemo @@ -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