sysupgrade: set UPGRADE_BACKUP env variable
authorRafał Miłecki <rafal@milecki.pl>
Thu, 5 Sep 2019 07:20:13 +0000 (09:20 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 5 Sep 2019 21:12:50 +0000 (23:12 +0200)
commit0f3c1366bb927e483abfae23dee0d15e26f87064
tree0cb0204e5816ab2bfa612da0e802c07db2f4f84c
parent0bcbbbf1abf76bf3aa8af5657308cac61f7de602
sysupgrade: set UPGRADE_BACKUP env variable

It points to the backup file to use duing sysupgrace process. Right now
it's hardcoded to the /tmp/sysupgrade.tgz. Once all cleanups are in
place "sysupgrade" ubus method should be extended to allow passing any
custom path.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
sysupgrade.c