Browse Source

sysupgrade: use sysrq-trigger if available

SVN-Revision: 15865
Jo-Philipp Wich 16 years ago
parent
commit
af8500e97d
2 changed files with 2 additions and 1 deletions
  1. 1 1
      package/base-files/Makefile
  2. 1 0
      package/base-files/files/lib/upgrade/common.sh

+ 1 - 1
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/
 

+ 1 - 0
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
 	}
 }