treewide: sysupgrade: use $UPGRADE_BACKUP to check for backup
[openwrt/staging/jogo.git] / target / linux / ar71xx / base-files / lib / upgrade / dir825.sh
index c694c2e6f283a7f75df2e072f192548f844f669e..e991a06b7a4dcb15be4b094da6af57b44332ca8e 100644 (file)
@@ -75,7 +75,7 @@ dir825b_do_upgrade_combined() {
 
        if [ -n "$fw_mtd" ] &&  [ ${fw_blocks:-0} -gt 0 ]; then
                local append=""
-               [ -f "$UPGRADE_BACKUP" -a "$UPGRADE_OPT_SAVE_CONFIG" -eq 1 ] && append="-j $UPGRADE_BACKUP"
+               [ -f "$UPGRADE_BACKUP" ] && append="-j $UPGRADE_BACKUP"
 
                sync
                dd if="$fw_file" bs=64k skip=1 count=$fw_blocks 2>/dev/null | \