treewide: when copying a backup file always specify dest name
authorRafał Miłecki <rafal@milecki.pl>
Wed, 4 Sep 2019 14:57:40 +0000 (16:57 +0200)
committerRISCi_ATOM <bob@bobcall.me>
Fri, 13 Sep 2019 20:29:53 +0000 (16:29 -0400)
commit050a9b5145ed7cd5254f35205038734df30dc7f2
tree08f969d46d6fbb51789ff02dd0bfe9d2a51490df
parentfd56f34c1ee53f8768aa062a46c6f06464596e4d
treewide: when copying a backup file always specify dest name

$CONF_TAR shouldn't be assumed to always point to the sysupgrade.tgz.
This change makes code more generic and allows refactoring $CONF_TAR.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 62dbe361a1b1ed1506bc0387bff55eddcb619e49)
target/linux/sunxi/base-files/lib/upgrade/platform.sh
target/linux/x86/base-files/lib/upgrade/platform.sh