treewide: use new procd sysupgrade $UPGRADE_BACKUP variable
[librecmc/librecmc.git] / package / base-files / files / lib / upgrade / common.sh
index 279470fcd8c166e7b6e2894e98d2e26ed986b171..8e7866f69847953c48dce009e473a82366e75f99 100644 (file)
@@ -221,7 +221,7 @@ indicate_upgrade() {
 default_do_upgrade() {
        sync
        if [ "$UPGRADE_OPT_SAVE_CONFIG" -eq 1 ]; then
-               get_image "$1" "$2" | mtd $MTD_ARGS $MTD_CONFIG_ARGS -j "$CONF_TAR" write - "${PART_NAME:-image}"
+               get_image "$1" "$2" | mtd $MTD_ARGS $MTD_CONFIG_ARGS -j "$UPGRADE_BACKUP" write - "${PART_NAME:-image}"
        else
                get_image "$1" "$2" | mtd $MTD_ARGS write - "${PART_NAME:-image}"
        fi