treewide: when copying a backup file always specify dest name
[openwrt/openwrt.git] / target / linux / mvebu / base-files / lib / upgrade / linksys.sh
index 857c550c73defc0c4accad171a4521f4fd816b0b..5104db31f3ce3b7ef5e85146875fca2e21c7007f 100644 (file)
@@ -93,6 +93,6 @@ platform_do_upgrade_linksys() {
 }
 
 platform_copy_config_linksys() {
-       cp -f "$CONF_TAR" /tmp/syscfg/
+       cp -f "$CONF_TAR" "/tmp/syscfg/$BACKUP_FILE"
        sync
 }