From 3a8c60d4dcc293014afdae24b2113c6ba1952e4c Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej 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 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/6478f625d3653d08d1bac91c59de4dab712b7df5 Author: Jacek Jendrzej Date: 2011-04-01 (Fri, 01 Apr 2011) Origin message was: ------------------ -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 ------------------ This commit was generated by Migit --- 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