treewide: don't hardcode "sysupgrade.tgz" file name
authorRafał Miłecki <rafal@milecki.pl>
Wed, 4 Sep 2019 14:57:39 +0000 (16:57 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 12 Sep 2019 11:25:27 +0000 (13:25 +0200)
commit37caec2d5e01b907a86969aa1526a6ec3812b511
treed93932477cb100306812e6fcad374e0c3f16e440
parentf54bc3985a2fbc30256d9aee8ea3b60b8aee593a
treewide: don't hardcode "sysupgrade.tgz" file name

1) Add BACKUP_FILE and use it when copying an archive to be restored
   after sysupgrade (on the next preinit).
2) Use CONF_TAR for copying backup prepared by the /sbin/sysupgrade

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit bf390478727ac5f4f9d6fb684de48b8150bcec67)
15 files changed:
package/base-files/files/lib/upgrade/common.sh
package/base-files/files/lib/upgrade/nand.sh
target/linux/apm821xx/base-files/lib/preinit/79_move_config
target/linux/brcm2708/base-files/lib/preinit/79_move_config
target/linux/imx6/base-files/lib/preinit/79_move_config
target/linux/ipq806x/base-files/lib/upgrade/zyxel.sh
target/linux/mediatek/base-files/lib/preinit/79_move_config
target/linux/mvebu/base-files/lib/preinit/79_move_config
target/linux/mvebu/base-files/lib/preinit/81_linksys_syscfg
target/linux/mvebu/base-files/lib/upgrade/linksys.sh
target/linux/octeon/base-files/lib/preinit/79_move_config
target/linux/omap/base-files/lib/preinit/79_move_config
target/linux/sunxi/base-files/lib/preinit/79_move_config
target/linux/tegra/base-files/lib/preinit/79_move_config
target/linux/x86/base-files/lib/preinit/79_move_config