9 # process command-line options
11 while getopts ":d:t:l" optn; do
19 \? ) echo "Usage: `basename $0` [-d device] [-t track] [-l] [filespec]"
21 echo "Defaults: -d /dev/sr1"
24 echo "if -l is given, archive is listed not restored."
29 shift $(($OPTIND - 1))
37 for filespec in "$@"; do
38 echo "$filespec" >>$TMP
45 if [ $LIST -eq 1 ]; then
46 aopt="-t" # list archive
47 echo "`basename $0`: listing archive"
49 aopt="-i" # restore archive
50 echo "`basename $0`: restoring archive"
53 cdrestore -d $DEVICE -t $TRACK | afio $aopt -vnz $SPECOPT -