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"
25 # Uncomment the following line if you do not want the tray to be reloaded
27 GROWARGS="${GROWARGS} -use-the-force-luke=notray"
29 # Uncomment the following line if you have a Linux kernel >=2.6.8, and
30 # if you want to allow a session to start beyond the 4gb boundary.
31 #GROWARGS="${GROWARGS} -use-the-force-luke=4gms"
33 #### You should probably not modify anything below this line
35 if test $# -ne 3 ; then
36 echo "usage: dvd-writepart part_number device part_filename"
37 echo " Wrong number of arguments arguments given (!= 3)."
46 if test $partnum = 1 ; then
52 echo Running ${GROWISOFS} ${GROWARGS} $arg $dev -R $filename...
54 ${GROWISOFS} ${GROWARGS} $arg $dev -R $filename