[package] base-files: fix test experession for sysupgrade
[openwrt.git] / package / base-files / files / lib / upgrade / common.sh
index 361c73a..2750018 100644 (file)
@@ -107,7 +107,7 @@ get_image() {
        local from="$1"
        local conc="cat"
 
-       [ $GZIPED -eq 1 ] && conc="zcat"
+       [ "$GZIPED" -eq 1 ] && conc="zcat"
 
        case "$from" in
                http://*|ftp://*) wget -O- -q "$from" | "$conc";;
@@ -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
        }
 }
This page took 0.025161 seconds and 4 git commands to generate.