3 # burns a bluray disc image onto a physical medium.
7 echo "This script needs two parameters, (1) an ISO file that provides the"
8 echo "data for the blu-ray and (2) the device to use for burning, e.g."
9 echo " $(basename $0) ~/grunge.iso /dev/sr1"
13 device_name="$1"; shift
15 if [ -z "$iso_name" -o -z "$device_name" ]; then
20 if [ ! -f "$iso_name" ]; then
21 echo -e "The ISO file must already exist.\n"
26 if [ ! -b "$device_name" ]; then
27 echo -e "The device name provided must exist and be block-special type.\n"
32 echo iso "$iso_name" dev "$device_name"
34 growisofs -dvd-compat -Z ${device_name}=${iso_name}
35 #used to be appended to above line: -speed=2
36 #trying with letting it go default speed. has been working for us recently.