1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

Allow kexec to directly use the kernel exposed in a mtd partition and reboot using the right command line

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9322 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian
2007-10-14 18:39:20 +00:00
parent c86bdad40d
commit 244f11bc0d
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
#!/bin/sh
. /etc/functions.sh
cmdline="$(cat /proc/cmdline)"
kernel="$(find_mtd_part kernel)"
kexec -l $kernel --command-line=$cmdline