diff --git a/data/scripts/restore.sh b/data/scripts/restore.sh index ba0e34f39..59bccff4b 100755 --- a/data/scripts/restore.sh +++ b/data/scripts/restore.sh @@ -1,6 +1,13 @@ #!/bin/sh echo Restore settings from $1 -cd / + +tar t -f $1 | grep ^config/ > /dev/null +if [ $? -eq 0 ]; then + cd /var/tuxbox +else + cd / +fi + tar xf $1 sync sync