diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-10-14 18:39:20 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-10-14 18:39:20 +0000 |
commit | ccbc63577061c015dee6019d134d0ab990eb5cdd (patch) | |
tree | 27ce114be635fa6b894c4aa2e201dc47142a96fb /package/kexec-tools/files/kexec.sh | |
parent | 2d7d23885d742f899c43f656db62301e725c04aa (diff) | |
download | upstream-ccbc63577061c015dee6019d134d0ab990eb5cdd.tar.gz upstream-ccbc63577061c015dee6019d134d0ab990eb5cdd.tar.bz2 upstream-ccbc63577061c015dee6019d134d0ab990eb5cdd.zip |
Allow kexec to directly use the kernel exposed in a mtd partition and reboot using the right command line
SVN-Revision: 9322
Diffstat (limited to 'package/kexec-tools/files/kexec.sh')
-rw-r--r-- | package/kexec-tools/files/kexec.sh | 5 |
1 files changed, 5 insertions, 0 deletions
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 |