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>
Wed, 11 Sep 2019 07:05:35 +0000 (09:05 +0200)
commita858db313687ddfa6ed1ddba76bd74844a7b89dc
tree7b28359be68043f3678541d7751c8c78702c22ea
parent9785a9121d2d7a0a25bcd2924ee78fafada056da
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>
12 files changed:
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
target/linux/ixp4xx/base-files/lib/upgrade/platform.sh