summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-05-15 12:10:26 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-05-15 12:10:26 +0000
commitaf8500e97d3a09023779c5e4350869111a1bf290 (patch)
tree554ab5e4197a61c03a627a139e322e23f5e1f5a6
parent01287654f215c79c70fb7e4addc4f59d0719341b (diff)
downloadmtk-20170518-af8500e97d3a09023779c5e4350869111a1bf290.zip
mtk-20170518-af8500e97d3a09023779c5e4350869111a1bf290.tar.gz
mtk-20170518-af8500e97d3a09023779c5e4350869111a1bf290.tar.bz2
sysupgrade: use sysrq-trigger if available
SVN-Revision: 15865
-rw-r--r--package/base-files/Makefile2
-rw-r--r--package/base-files/files/lib/upgrade/common.sh1
2 files changed, 2 insertions, 1 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 8a5f67b..bbc1011 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -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/
diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh
index 361c73a..9ba9e23 100644
--- a/package/base-files/files/lib/upgrade/common.sh
+++ b/package/base-files/files/lib/upgrade/common.sh
@@ -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
}
}