3 # Copyright (C) 2004 by Oleg I. Vdovikin <oleg@cs.msu.su>
4 # Modified for Unslung by Rod Whitby
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 if [ -f /share/flash/data/resling.tar.gz ] ; then
22 RESLING=/share/flash/data/resling.tar.gz
23 elif [ -f /share/hdd/data/resling.tar.gz ] ; then
24 RESLING=/share/hdd/data/resling.tar.gz
25 elif [ -f /share/flash/conf/resling.tar.gz ] ; then
26 RESLING=/share/flash/conf/resling.tar.gz
27 elif [ -f /share/hdd/conf/resling.tar.gz ] ; then
28 RESLING=/share/hdd/conf/resling.tar.gz
30 RESLING=/share/flash/data/resling.tar.gz
35 if [ -f ${RESLING} ]; then
36 tar -C / -zxf ${RESLING}
43 tar -C / -zxvf ${RESLING}
46 tar -C / -ztf ${RESLING}
49 [ -f /unslung/.files ] && FILES=$(cat /unslung/.files)
50 rm -f /tmp/resling.tar.gz
51 tar -C / -zcvf /tmp/resling.tar.gz /unslung $FILES &&
53 mv /tmp/resling.tar.gz ${RESLING} &&
58 echo "Usage: $0 start|clear|load|list|save"