From 6478f625d3653d08d1bac91c59de4dab712b7df5 Mon Sep 17 00:00:00 2001 From: satbaby Date: Fri, 1 Apr 2011 14:13:29 +0000 Subject: [PATCH] -fix for backups with old script git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1369 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- data/scripts/restore.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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