mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
NI \o/
Origin commit data
------------------
Branch: ni/coolstream
Commit: d6b3754c6f
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-05-19 (Thu, 19 May 2016)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1,14 +1,19 @@
|
||||
#!/bin/sh
|
||||
echo Restore settings from $1
|
||||
|
||||
tar t -f $1 | grep ^config/ > /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
cd /var/tuxbox
|
||||
else
|
||||
cd /
|
||||
fi
|
||||
. /etc/init.d/globals
|
||||
|
||||
BAKF="$1"
|
||||
E=0
|
||||
|
||||
tar xf $1
|
||||
sync
|
||||
sleep 2
|
||||
killall start_neutrino; E=$(($E+$?))
|
||||
killall neutrino; E=$(($E+$?))
|
||||
sleep 3
|
||||
|
||||
SHOWINFO "restore settings from "${BAKF}""
|
||||
cd / && tar -xzf "${BAKF}"
|
||||
sync
|
||||
reboot -f
|
||||
SHOWINFO "done."
|
||||
|
||||
test $E -eq 0 && reboot || reboot -f
|
||||
|
Reference in New Issue
Block a user