From bf925e567d78f77221fd590db68baddc523d826f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michael=20B=C3=BCsch?= 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. SVN-Revision: 25918 --- 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 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 -- 2.30.2