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)
committerRISCi_ATOM <bob@bobcall.me>
Tue, 17 Sep 2019 13:36:30 +0000 (09:36 -0400)
commit8199479d3cef6f8a4f3ea2fcbbcb9674469b779e
tree9b17ea7dbb0676cc9b787eaa921cfb35a072ad99
parent4ad92d6799513c26dfcd8c2184af19b203262ab0
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/ath79/base-files/lib/upgrade/platform.sh