Files
recycled-ni-neutrino/data/scripts/restore.sh
vanhofen 4cf2b60722 NI \o/
Origin commit data
------------------
Commit: d6b3754c6f
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-05-19 (Thu, 19 May 2016)
2016-05-19 22:59:54 +02:00

20 lines
269 B
Bash
Executable File

#!/bin/sh
. /etc/init.d/globals
BAKF="$1"
E=0
sync
sleep 2
killall start_neutrino; E=$(($E+$?))
killall neutrino; E=$(($E+$?))
sleep 3
SHOWINFO "restore settings from "${BAKF}""
cd / && tar -xzf "${BAKF}"
sync
SHOWINFO "done."
test $E -eq 0 && reboot || reboot -f