base-files: Fix sysupgrade .tar.gz configuration restoring
[openwrt/staging/wigyori.git] / package / base-files / files / sbin / sysupgrade
index f25195a520000d021444ae2a11ee440519f3319b..fb1e91a668205e0268828f361e17f2e18257c9c1 100755 (executable)
@@ -88,7 +88,7 @@ for check in $sysupgrade_image_check; do
 done
 
 if [ -n "$CONF_IMAGE" ]; then
-       case "$(get_magic_word "$CONF_IMAGE")" in
+       case "$(get_magic_word $CONF_IMAGE cat)" in
                # .gz files
                1f8b) ;;
                *)