mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
data/scripts: remove some hardcoded paths
Origin commit data
------------------
Branch: ni/coolstream
Commit: 93ca7b0ef1
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-11-26 (Thu, 26 Nov 2020)
Origin message was:
------------------
- data/scripts: remove some hardcoded paths
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
19
data/scripts/restore.sh.in
Executable file
19
data/scripts/restore.sh.in
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/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
|
Reference in New Issue
Block a user