mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
[package] sysupgrade: use sysrq-trigger if available
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15865 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
37319410fe
commit
55317e85f0
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=base-files
|
||||
PKG_RELEASE:=19
|
||||
PKG_RELEASE:=20
|
||||
|
||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||
|
||||
|
||||
@ -167,6 +167,7 @@ do_upgrade() {
|
||||
[ -n "$DELAY" ] && sleep "$DELAY"
|
||||
ask_bool 1 "Reboot" && {
|
||||
v "Rebooting system..."
|
||||
echo b 2>/dev/null >/proc/sysrq-trigger
|
||||
reboot
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user