ar71xx: Unifi AP Pro sysupgrade patch
[openwrt/openwrt.git] / package / base-files / files / lib / upgrade / common.sh
index 91162069650030e1467c4b54573afd932d17e00a..6122ae7712085015c8cdac3666c259ea187c4918 100644 (file)
@@ -188,7 +188,7 @@ jffs2_copy_config() {
 default_do_upgrade() {
        sync
        if [ "$SAVE_CONFIG" -eq 1 ]; then
-               get_image "$1" | mtd -j "$CONF_TAR" write - "${PART_NAME:-image}"
+               get_image "$1" | mtd $MTD_CONFIG_ARGS -j "$CONF_TAR" write - "${PART_NAME:-image}"
        else
                get_image "$1" | mtd write - "${PART_NAME:-image}"
        fi