neutrino: adapt backup/restore scripts to ensure compatibility with ni-ofgwrite

This commit is contained in:
J. Krieg
2018-11-01 17:26:15 +01:00
committed by Thilo Graf
parent 396d7bb42a
commit d23bf1106e
2 changed files with 10 additions and 3 deletions

View File

@@ -8,7 +8,13 @@ else
cd /
fi
tar xf $1
# check if $1 ends with "gz"
if [ "$1" != "${1%gz}" ]; then
tar -xzf $1
else
tar -xf $1
fi
sync
sync
reboot -f