1 HELPERS="$HELPERS makecd:makecd_backup"
2 wizardname="makecd action wizard"
4 declare -a makecd_excludes
8 inputBox "$wizardname" "specify a burner type cd or dvd:"
10 burnertype="burnertype = $REPLY"
12 #checkBox "makecd action wizard" "check options" \
13 # "isoonly" "only create iso image do not burn" yes
15 #[ $status = 1 ] && return;
16 #isoonly="isoonly = $REPLY"
18 booleanBox "$wizardname" "Make iso image only? or burn"
20 isoonly="isoonly = yes"
22 isoonly="isoonly = no"
26 inputBox "$wizardname" "Directory where to store the backups:"
28 backupdir="backupdir = $REPLY"
30 inputBox "$wizardname" "what name to give to the image file?"
32 imagefile="imagefile = $REPLY"
34 inputBox "$wizardname" "specify a burner device:"
36 device="device = $REPLY"
38 # target - root of system to be included
39 inputBox "$wizardname" "root of filesystem for burn:"
41 target="target = $REPLY"
46 formBegin "$wizardname: excludes"
47 for ((i=0; i < ${#makecd_excludes[@]} ; i++)); do
48 formItem exclude ${makecd_excludes[$i]}
63 makecd_excludes=($REPLY)
65 get_next_filename $configdirectory/20.makecd
66 cat >> $next_filename <<EOF
68 # TYP is cd or dvd AS WELL AS the disk inside!!
74 # iso or burn to cd/dvd?
77 # location for image file
83 # cd/dvd burner device
86 # dirs/files to include in the backup
89 # directories/files to be excluded
95 for ((j=0; j < ${#makecd_excludes[@]} ; j++)); do
96 echo "exclude = ${makecd_excludes[$j]}" >> $next_filename
99 chmod 600 $next_filename