treewide: don't hardcode "sysupgrade.tgz" file name
[openwrt/openwrt.git] / package / base-files / files / lib / upgrade / nand.sh
index fbc2b5c19a07ff91f67a7ffdccaa63d4b6edc5a8..e7d7bf8d13ae43e330abefbc9c678707e6a03bc9 100644 (file)
@@ -109,7 +109,7 @@ nand_restore_config() {
                rmdir /tmp/new_root
                return 1
        fi
-       mv "$1" "/tmp/new_root/sysupgrade.tgz"
+       mv "$1" "/tmp/new_root/$BACKUP_FILE"
        umount /tmp/new_root
        sync
        rmdir /tmp/new_root