From: Jo-Philipp Wich Date: Fri, 15 May 2009 12:10:26 +0000 (+0000) Subject: [package] sysupgrade: use sysrq-trigger if available X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=5d7abf54c566baae78a87aed48852470dfcd7a3d;hp=46b62471c98180de673e4b5059a9d84651b92cf0 [package] sysupgrade: use sysrq-trigger if available SVN-Revision: 15865 --- diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 8a5f67b42f..bbc101107f 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 361c73a5ee..9ba9e23e7e 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 } }