Mercurial > backup
diff 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 |
line wrap: on
line diff
1.1 --- a/cd-backup.sh Mon Feb 25 09:26:19 2013 +0000 1.2 +++ b/cd-backup.sh Mon Feb 25 09:35:08 2013 +0000 1.3 @@ -2,9 +2,9 @@ 1.4 1.5 TARGET="/home/r/tmp/image.iso" 1.6 1.7 -START=`cdrecord -msinfo` 1.8 +#START=`cdrecord -msinfo` 1.9 1.10 -echo "$START" 1.11 +#echo "$START" 1.12 1.13 GRAFT_POINTS='' 1.14 1.15 @@ -16,16 +16,16 @@ 1.16 1.17 #echo $GRAFT_POINTS 1.18 1.19 -if [ "$START" == "0,0" ]; then 1.20 +#if [ "$START" == "0,0" ]; then 1.21 COMMAND="mkisofs -iso-level 4 -rJT -o $TARGET -graft-points $GRAFT_POINTS" 1.22 +# echo $COMMAND 1.23 +# eval $COMMAND 1.24 +#else 1.25 +# COMMAND="mkisofs -iso-level 4 -rJT -M /dev/cdrom \ 1.26 +# -C $START -o $TARGET -graft-points $GRAFT_POINTS" 1.27 echo $COMMAND 1.28 eval $COMMAND 1.29 -else 1.30 - COMMAND="mkisofs -iso-level 4 -rJT -M /dev/cdrom \ 1.31 - -C $START -o $TARGET -graft-points $GRAFT_POINTS" 1.32 - echo $COMMAND 1.33 - eval $COMMAND 1.34 -fi 1.35 +#fi 1.36 1.37 1.38 echo "files copied to $TARGET. use 'burn-tmp-iso-image' to burn it."