Allow kexec to directly use the kernel exposed in a mtd partition and reboot using...
[openwrt/staging/wigyori.git] / package / kexec-tools / files / kexec.sh
1 #!/bin/sh
2 . /etc/functions.sh
3 cmdline="$(cat /proc/cmdline)"
4 kernel="$(find_mtd_part kernel)"
5 kexec -l $kernel --command-line=$cmdline