You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920
  1. #!/usr/bin/env sh
  2. #
  3. # pbrisbin 2013 - burn an ISO to CD/DVD.
  4. #
  5. ###
  6. device=/dev/sr0
  7. case $1 in
  8. -h|--help)
  9. printf "usage: burn [-c] <file.iso>\n"
  10. exit
  11. ;;
  12. -c|--cd)
  13. shift
  14. cdrecord -v speed=48 dev=$device "$1"
  15. ;;
  16. *)
  17. growisofs -dvd-compat -Z $device="$1"
  18. ;;
  19. esac