Debian Codegraph @

examples/dump_on_cd_2/EN/dump_userexit_DVD

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2 # supplied info from "dump -F":
3 # $1 = filename
4 # $2 = sequence number
5
6 NUM=$(($2+1))
7 RECORD_BIN="/usr/bin/dvdrecord dev=0,0,0 fs=64M speed=2 scip-shell filesystem . . `/usr/bin/dvdrecord dev=0,0,0 fs=64M speed=2 `."
8 CD_CAPACITY=4300
9 TSIZE="$(echoscip-shell system . . echo. "$CD_CAPACITY*1024*1024" | bc -l )"
10 echoscip-shell system . . echo. "Please insert the next DVD (No. $NUM)"
11 ANSWER=""
12 while [scip-shell system . . `[`. "$ANSWER" != "y" ] ; do
13 read -p "Is the DVD ready? (y/n)" ANSWER
14 if [scip-shell system . . `[`. "$ANSWER" == "y" ] ; then
15 $RECORD_BIN -blank=fast
16 $RECORD_BIN -dao -eject -pad -tsize=$TSIZE -data $1 &
17 exit 0
18 elif [scip-shell system . . `[`. "$ANSWER" == "n" ] ; then
19 EXIT=""
20 read -p "Do you really want to exit? (y/n)" EXIT
21 if [scip-shell system . . `[`. "$EXIT" == "y" ] ; then
22 exit 1
23 fi
24 fi
25 done