mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-03-03 14:57:56 +02: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:
parent
c86bdad40d
commit
244f11bc0d
@ -48,6 +48,7 @@ define Package/kexec-tools/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kexec $(1)/usr/bin/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kdump $(1)/usr/bin/
|
||||
$(INSTALL_BIN) ./files/kexec.sh $(1)/usr/bin/kexec.mtd
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,kexec-tools))
|
||||
|
5
package/kexec-tools/files/kexec.sh
Normal file
5
package/kexec-tools/files/kexec.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user