From ccbc63577061c015dee6019d134d0ab990eb5cdd Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sun, 14 Oct 2007 18:39:20 +0000 Subject: Allow kexec to directly use the kernel exposed in a mtd partition and reboot using the right command line SVN-Revision: 9322 --- package/kexec-tools/files/kexec.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 package/kexec-tools/files/kexec.sh (limited to 'package/kexec-tools/files') diff --git a/package/kexec-tools/files/kexec.sh b/package/kexec-tools/files/kexec.sh new file mode 100644 index 0000000000..8871d8aeb9 --- /dev/null +++ b/package/kexec-tools/files/kexec.sh @@ -0,0 +1,5 @@ +#!/bin/sh +. /etc/functions.sh +cmdline="$(cat /proc/cmdline)" +kernel="$(find_mtd_part kernel)" +kexec -l $kernel --command-line=$cmdline -- cgit v1.2.3