[package] sysupgrade: use sysrq-trigger if available
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 15 May 2009 12:10:26 +0000 (12:10 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 15 May 2009 12:10:26 +0000 (12:10 +0000)
SVN-Revision: 15865

package/base-files/Makefile
package/base-files/files/lib/upgrade/common.sh

index 8a5f67b..bbc1011 100644 (file)
@@ -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/
 
index 361c73a..9ba9e23 100644 (file)
@@ -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
        }
 }