- if [ "$burnertype" == "cd" ]; then
- # burning iso to CD
- $CDRECORD -v gracetime=2 dev=$device speed=8 -dao -data $outputfile
- code=$?
- if [ "$code" == "0" ]; then
- debug $output
- info "Successfully burned CD"
- else
- warning $output
- warning "Failed to create CD"
- fi
- fi
- if [ "$burnertype" == "dvd" ]; then
- # burning iso dvd
- $GROWISOFS -speed=2 -Z $device=$outputfile -use-the-force-luke=notray -use-the-force-luke=tty
- code=$?
- if [ "$code" == "0" ]; then
- debug $output
- info "Successfully burned DVD"
- else
- warning $output
- warning "Failed to create DVD"
- fi
- fi
+ if [ "$burnertype" == "cd" ]; then
+ # burning iso to CD
+ $CDRECORD -v gracetime=2 dev=$device speed=8 -dao -data $outputfile
+ code=$?
+ if [ "$code" == "0" ]; then
+ debug $output
+ info "Successfully burned CD"
+ else
+ warning $output
+ warning "Failed to create CD"
+ fi
+ fi
+ if [ "$burnertype" == "dvd" ]; then
+ # burning iso dvd
+ $GROWISOFS -speed=2 -Z $device=$outputfile -use-the-force-luke=notray -use-the-force-luke=tty
+ code=$?
+ if [ "$code" == "0" ]; then
+ debug $output
+ info "Successfully burned DVD"
+ else
+ warning $output
+ warning "Failed to create DVD"
+ fi
+ fi