aboutsummaryrefslogtreecommitdiffstats
path: root/package/kexec-tools/files/kexec.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package/kexec-tools/files/kexec.sh')
-rw-r--r--package/kexec-tools/files/kexec.sh5
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