comparison cd-backup.sh @ 7:11334e7aed98

comment out some extra functions for debugging.
author Robert McIntyre <rlm@mit.edu>
date Mon, 25 Feb 2013 09:35:08 +0000
parents dc7c9557d412
children e736b9aaf5ad
comparison
equal deleted inserted replaced
6:dc7c9557d412 7:11334e7aed98
1 #!/bin/sh 1 #!/bin/sh
2 2
3 TARGET="/home/r/tmp/image.iso" 3 TARGET="/home/r/tmp/image.iso"
4 4
5 START=`cdrecord -msinfo` 5 #START=`cdrecord -msinfo`
6 6
7 echo "$START" 7 #echo "$START"
8 8
9 GRAFT_POINTS='' 9 GRAFT_POINTS=''
10 10
11 for var in "$@" 11 for var in "$@"
12 do 12 do
14 done 14 done
15 15
16 16
17 #echo $GRAFT_POINTS 17 #echo $GRAFT_POINTS
18 18
19 if [ "$START" == "0,0" ]; then 19 #if [ "$START" == "0,0" ]; then
20 COMMAND="mkisofs -iso-level 4 -rJT -o $TARGET -graft-points $GRAFT_POINTS" 20 COMMAND="mkisofs -iso-level 4 -rJT -o $TARGET -graft-points $GRAFT_POINTS"
21 # echo $COMMAND
22 # eval $COMMAND
23 #else
24 # COMMAND="mkisofs -iso-level 4 -rJT -M /dev/cdrom \
25 # -C $START -o $TARGET -graft-points $GRAFT_POINTS"
21 echo $COMMAND 26 echo $COMMAND
22 eval $COMMAND 27 eval $COMMAND
23 else 28 #fi
24 COMMAND="mkisofs -iso-level 4 -rJT -M /dev/cdrom \
25 -C $START -o $TARGET -graft-points $GRAFT_POINTS"
26 echo $COMMAND
27 eval $COMMAND
28 fi
29 29
30 30
31 echo "files copied to $TARGET. use 'burn-tmp-iso-image' to burn it." 31 echo "files copied to $TARGET. use 'burn-tmp-iso-image' to burn it."
32 32
33 #cd-burn 33 #cd-burn