revert r19964 for now, there are issues with opkg/ipkg.py generating the status db
[openwrt.git] / package / base-files / files / sbin / sysupgrade
index f25195a520000d021444ae2a11ee440519f3319b..0cf51cfb78692686766b14ba145ff3a92c5fae4f 100755 (executable)
@@ -51,7 +51,8 @@ EOF
 
 add_uci_conffiles() {
        local file="$1"
-       find /etc/config /etc/passwd /etc/group /etc/dropbear /etc/firewall.user > "$file"
+       find /etc/config /etc/passwd /etc/group /etc/dropbear \
+               /etc/firewall.user /etc/rc.local -type f > "$file"
        return 0
 }
 
@@ -88,7 +89,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) ;;
                *)