mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
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.
16 lines
266 B
Bash
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
|