3 # Bacula interface to growisofs, used to write to DVD+/-R(W)
7 # If you set in your Device resource
9 # Write Part Command = "path-to-this-script/dvd-writepart %n %a %v"
10 # you will have the following input to this script:
12 # dvd-writepart "part_number" "device" "part_filename"
17 # dvd-writepart 0 /dev/hda File-0001
22 GROWARGS="-use-the-force-luke=tty -quiet"
24 # Uncomment the following line if you do not want the tray to be reloaded
26 #GROWARGS="${GROWARGS} -use-the-force-luke=notray"
28 # Uncomment the following line if you have a Linux kernel >=2.6.8, and
29 # if you want to allow a session to start behind the 4gb boundary.
30 #GROWARGS="${GROWARGS} -use-the-force-luke=4gms"
32 #### You should probably not modify anything below this line
34 if test $# -ne 3 ; then
35 echo "usage: dvd-writepart part_number device part_filename"
36 echo " Wrong number of arguments arguments given (!= 3)."
45 if test $partnum = 0 ; then
51 echo Running ${GROWISOFS} ${GROWARGS} $arg $dev -R $filename...
53 ${GROWISOFS} ${GROWARGS} $arg $dev -R $filename