Mercurial > backup
changeset 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 |
files | burn-tmp-iso-image.sh cd-backup.sh |
diffstat | 2 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
1.1 --- a/burn-tmp-iso-image.sh Mon Feb 25 09:26:19 2013 +0000 1.2 +++ b/burn-tmp-iso-image.sh Mon Feb 25 09:35:08 2013 +0000 1.3 @@ -2,6 +2,6 @@ 1.4 1.5 TARGET=/home/r/tmp/image.iso 1.6 1.7 -cdrecord -multi -v gracetime=3 -overburn -data "$TARGET" 1.8 +cdrecord -multi -v gracetime=3 -overburn -data "$TARGET" 1.9 1.10 -rm $TARGET 1.11 +#rm $TARGET
2.1 --- a/cd-backup.sh Mon Feb 25 09:26:19 2013 +0000 2.2 +++ b/cd-backup.sh Mon Feb 25 09:35:08 2013 +0000 2.3 @@ -2,9 +2,9 @@ 2.4 2.5 TARGET="/home/r/tmp/image.iso" 2.6 2.7 -START=`cdrecord -msinfo` 2.8 +#START=`cdrecord -msinfo` 2.9 2.10 -echo "$START" 2.11 +#echo "$START" 2.12 2.13 GRAFT_POINTS='' 2.14 2.15 @@ -16,16 +16,16 @@ 2.16 2.17 #echo $GRAFT_POINTS 2.18 2.19 -if [ "$START" == "0,0" ]; then 2.20 +#if [ "$START" == "0,0" ]; then 2.21 COMMAND="mkisofs -iso-level 4 -rJT -o $TARGET -graft-points $GRAFT_POINTS" 2.22 +# echo $COMMAND 2.23 +# eval $COMMAND 2.24 +#else 2.25 +# COMMAND="mkisofs -iso-level 4 -rJT -M /dev/cdrom \ 2.26 +# -C $START -o $TARGET -graft-points $GRAFT_POINTS" 2.27 echo $COMMAND 2.28 eval $COMMAND 2.29 -else 2.30 - COMMAND="mkisofs -iso-level 4 -rJT -M /dev/cdrom \ 2.31 - -C $START -o $TARGET -graft-points $GRAFT_POINTS" 2.32 - echo $COMMAND 2.33 - eval $COMMAND 2.34 -fi 2.35 +#fi 2.36 2.37 2.38 echo "files copied to $TARGET. use 'burn-tmp-iso-image' to burn it."