Files
recycled-ni-neutrino/data/scripts/restore.sh.in
vanhofen 3e0aa03c89 scripts: fix permissions of restore.sh.in
Origin commit data
------------------
Branch: ni/coolstream
Commit: d0c5011ac5
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-09-26 (Sun, 26 Sep 2021)

Origin message was:
------------------
- scripts: fix permissions of restore.sh.in

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2021-09-26 20:25:38 +02:00

20 lines
269 B
Bash

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