3 # burns a bluray or dvd data disc image onto a physical medium.
5 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
9 echo "This script needs two parameters, (1) an ISO file that provides the"
10 echo "data for the blu-ray and (2) the device to use for burning, e.g."
11 echo " $(basename $0) ~/grunge.iso /dev/sr1"
15 device_name="$1"; shift
17 if [ -z "$iso_name" -o -z "$device_name" ]; then
22 if [ ! -f "$iso_name" ]; then
23 echo -e "The ISO file must already exist.\n"
28 if [ ! -b "$device_name" ]; then
29 echo -e "The device name provided must exist and be block-special type.\n"
34 echo "burning disk from image '$iso_name' on device '$device_name'..."
35 #echo iso "$iso_name" dev "$device_name"
37 growisofs -dvd-compat -Z ${device_name}=${iso_name}
38 #used to be appended to above line: -speed=2
39 #trying with letting it go default speed. has been working for us recently.
40 exit_on_error growing ISO FS from image ${iso_name}
42 echo "success burning '$iso_name' onto device '$device_name' !"