mb 36ac8fb13d 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
2011-03-07 00:39:09 +00:00

12 lines
211 B
Bash
Executable File

#!/bin/sh
set -e
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