1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-09 11:59:42 +02:00
openwrt-xburst/package/kexec-tools/files/kexec.sh
florian 244f11bc0d 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
2007-10-14 18:39:20 +00:00

6 lines
135 B
Bash

#!/bin/sh
. /etc/functions.sh
cmdline="$(cat /proc/cmdline)"
kernel="$(find_mtd_part kernel)"
kexec -l $kernel --command-line=$cmdline