1 # -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*-
3 HELPERS="$HELPERS makecd:makecd_backup"
4 wizardname="makecd action wizard"
6 declare -a makecd_excludes
10 inputBox "$wizardname" "specify a burner type cd or dvd:"
12 burnertype="burnertype = $REPLY"
14 booleanBox "$wizardname" "Make iso image only? or burn"
16 isoonly="isoonly = yes"
18 isoonly="isoonly = no"
22 inputBox "$wizardname" "Directory where to store the backups:"
24 backupdir="backupdir = $REPLY"
26 inputBox "$wizardname" "what name to give to the image file?"
28 imagefile="imagefile = $REPLY"
30 inputBox "$wizardname" "specify a burner device:"
32 device="device = $REPLY"
34 # target - root of system to be included
35 inputBox "$wizardname" "root of filesystem for burn:"
37 target="target = $REPLY"
42 formBegin "$wizardname: excludes"
43 for ((i=0; i < ${#makecd_excludes[@]} ; i++)); do
44 formItem exclude ${makecd_excludes[$i]}
59 makecd_excludes=($REPLY)
61 get_next_filename $configdirectory/20.makecd
62 cat >> $next_filename <<EOF
64 # TYP is cd or dvd AS WELL AS the disk inside!!
70 # iso or burn to cd/dvd?
73 # location for image file
79 # cd/dvd burner device
82 # dirs/files to include in the backup
85 # directories/files to be excluded
91 for ((j=0; j < ${#makecd_excludes[@]} ; j++)); do
92 echo "exclude = ${makecd_excludes[$j]}" >> $next_filename
95 chmod 600 $next_filename