diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2019-09-04 16:57:39 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2019-09-05 14:33:19 +0200 |
commit | bf390478727ac5f4f9d6fb684de48b8150bcec67 (patch) | |
tree | cd19a4cb1b41476edf17cca11807c92541c8eb19 /target/linux/ipq806x/base-files | |
parent | 1078de96e315f3cc2675b2c5935009e8c6159ad4 (diff) | |
download | upstream-bf390478727ac5f4f9d6fb684de48b8150bcec67.tar.gz upstream-bf390478727ac5f4f9d6fb684de48b8150bcec67.tar.bz2 upstream-bf390478727ac5f4f9d6fb684de48b8150bcec67.zip |
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>
Diffstat (limited to 'target/linux/ipq806x/base-files')
-rw-r--r-- | target/linux/ipq806x/base-files/lib/upgrade/zyxel.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ipq806x/base-files/lib/upgrade/zyxel.sh b/target/linux/ipq806x/base-files/lib/upgrade/zyxel.sh index 33cd98339c..8888ec7d04 100644 --- a/target/linux/ipq806x/base-files/lib/upgrade/zyxel.sh +++ b/target/linux/ipq806x/base-files/lib/upgrade/zyxel.sh @@ -60,7 +60,7 @@ zyxel_do_flash() { mkdir /tmp/new_root mount -t ext4 $loopdev /tmp/new_root && { echo "Saving config to rootfs_data at position ${offset}." - cp -v /tmp/sysupgrade.tgz /tmp/new_root/ + cp -v "$CONF_TAR" /tmp/new_root/ umount /tmp/new_root } |