diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2019-09-05 23:33:19 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2019-09-12 13:27:29 +0200 |
commit | a717428828558577760abfcf83a54e3d7459ee0b (patch) | |
tree | 40460adc1ed60cf2ab8762a3cd7df3dead0015f4 /target/linux/ar71xx/base-files/lib/upgrade/dir825.sh | |
parent | 1b9a4f0cb48acb91a8765d1d8715077b9846e39e (diff) | |
download | upstream-a717428828558577760abfcf83a54e3d7459ee0b.tar.gz upstream-a717428828558577760abfcf83a54e3d7459ee0b.tar.bz2 upstream-a717428828558577760abfcf83a54e3d7459ee0b.zip |
treewide: use new procd sysupgrade $UPGRADE_BACKUP variable
It's a variable set by procd that should replace hardcoded
/tmp/sysupgrade.tgz.
This change requires the most recent procd with the commit 0f3c136
("sysupgrade: set UPGRADE_BACKUP env variable").
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 641f6b6c26cb9ab5e1198810015e5f4b2b5b34ad)
Diffstat (limited to 'target/linux/ar71xx/base-files/lib/upgrade/dir825.sh')
-rw-r--r-- | target/linux/ar71xx/base-files/lib/upgrade/dir825.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/dir825.sh b/target/linux/ar71xx/base-files/lib/upgrade/dir825.sh index eac0aef1b8..c694c2e6f2 100644 --- a/target/linux/ar71xx/base-files/lib/upgrade/dir825.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/dir825.sh @@ -75,7 +75,7 @@ dir825b_do_upgrade_combined() { if [ -n "$fw_mtd" ] && [ ${fw_blocks:-0} -gt 0 ]; then local append="" - [ -f "$CONF_TAR" -a "$UPGRADE_OPT_SAVE_CONFIG" -eq 1 ] && append="-j $CONF_TAR" + [ -f "$UPGRADE_BACKUP" -a "$UPGRADE_OPT_SAVE_CONFIG" -eq 1 ] && append="-j $UPGRADE_BACKUP" sync dd if="$fw_file" bs=64k skip=1 count=$fw_blocks 2>/dev/null | \ |