[package] sysupgrade: use sysrq-trigger if available
[openwrt/svn-archive/archive.git] / package / base-files / files / lib / upgrade / common.sh
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
        }
 }