base-files: upgrade: use zcat command provided by busybox
[openwrt/staging/noltari.git] / package / base-files / files / lib / upgrade / common.sh
index b59a40456551c80948110046f60de72131d7ccf1..b8ae2ecb7e5e95446e166a91ae0f96b04bff1ebd 100644 (file)
@@ -95,7 +95,7 @@ get_image() { # <source> [ <command> ]
        if [ -z "$cmd" ]; then
                local magic="$(dd if="$from" bs=2 count=1 2>/dev/null | hexdump -n 2 -e '1/1 "%02x"')"
                case "$magic" in
-                       1f8b) cmd="zcat";;
+                       1f8b) cmd="busybox zcat";;
                        *) cmd="cat";;
                esac
        fi