Files
neutrino/data/scripts/restore_flash.sh.in
svenhoefer 37fb4e4e4f - 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.
2020-12-07 20:34:25 +01:00

16 lines
266 B
Bash

#!/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