5 echo "This script needs two parameters, (1) an ISO file that provides the"
6 echo "data for the blu-ray and (2) the device to use for burning, e.g."
7 echo " $(basename $0) ~/grunge.iso /dev/sr1"
11 device_name="$1"; shift
13 if [ -z "$iso_name" -o -z "$device_name" ]; then
18 if [ ! -f "$iso_name" ]; then
19 echo -e "The ISO file must already exist.\n"
24 if [ ! -b "$device_name" ]; then
25 echo -e "The device name provided must exist and be block-special type.\n"
30 echo iso "$iso_name" dev "$device_name"
32 growisofs -dvd-compat -Z ${device_name}=${iso_name}
33 #trying with letting it go default speed. has been working for us recently. -speed=2