From: Michael Büsch Date: Mon, 7 Mar 2011 00:39:09 +0000 (+0000) Subject: maemo-kexec: Kick the watchdog before kexec-ing to make sure it doesn't expire before... X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=bf925e567d78f77221fd590db68baddc523d826f;p=openwrt%2Fsvn-archive%2Farchive.git maemo-kexec: Kick the watchdog before kexec-ing to make sure it doesn't expire before the new OS kernel was loaded. SVN-Revision: 25918 --- diff --git a/utils/maemo-kexec/files/sbin/bootmaemo b/utils/maemo-kexec/files/sbin/bootmaemo index 498b096f38..14f85b1e77 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