- data/scripts: remove some hardcoded paths

Conflicts:
	data/config/settingsupdate.conf.in
	data/scripts/backup.sh
	data/scripts/backup_flash.sh.in
	data/scripts/restore_flash.sh.in

Signed-off-by: Thilo Graf <dbt@novatux.de>

Files adapted because conflicts and possible build errors.
This commit is contained in:
svenhoefer
2020-11-26 00:46:21 +01:00
committed by Thilo Graf
parent f57fac5a5a
commit 37fb4e4e4f
7 changed files with 103 additions and 11 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/sh
. /etc/init.d/globals
BAKF="/var/backup_flash.tar.gz"
if [ -e ${BAKF} ]; then
SHOWINFO "restore settings from ${BAKF} ..."
cd / && tar -xzf "${BAKF}"
sync
rm -rf "${BAKF}"
SHOWINFO "done."
else
SHOWINFO "${BAKF} not found. nothing to restore!"
fi