treewide: sysupgrade: use $UPGRADE_BACKUP to check for backup
authorRafał Miłecki <rafal@milecki.pl>
Fri, 6 Sep 2019 05:10:54 +0000 (07:10 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Mon, 16 Sep 2019 03:57:08 +0000 (05:57 +0200)
commitc53a0ed5e38d254ed15a447bfb8fbcd2c4a3bda5
treeb2c4f9b8a3e5d1232c9c7e297c343e76174bd86b
parentf69b855a7580f6d5ec411f16fdeb4d1b11884d2c
treewide: sysupgrade: use $UPGRADE_BACKUP to check for backup

Now that $UPGRADE_BACKUP is set conditionally there is no need to check
the $UPGRADE_OPT_SAVE_CONFIG anymore. All conditions can be simplified.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit a858db313687ddfa6ed1ddba76bd74844a7b89dc)
package/base-files/files/lib/upgrade/common.sh
package/base-files/files/lib/upgrade/do_stage2
package/base-files/files/sbin/sysupgrade
target/linux/ar71xx/base-files/lib/upgrade/dir825.sh
target/linux/ar71xx/base-files/lib/upgrade/openmesh.sh
target/linux/ar71xx/base-files/lib/upgrade/platform.sh
target/linux/ath25/base-files/lib/upgrade/platform.sh
target/linux/ath79/base-files/lib/upgrade/platform.sh
target/linux/imx6/base-files/lib/upgrade/platform.sh
target/linux/ipq40xx/base-files/lib/upgrade/openmesh.sh
target/linux/ipq40xx/base-files/lib/upgrade/platform.sh