mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
neutrino: adapt backup/restore scripts to ensure compatibility with ni-ofgwrite
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user