1 # -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*-
2 HELPERS="$HELPERS makecd:makecd_backup"
3 wizardname="makecd action wizard"
5 declare -a makecd_excludes
9 inputBox "$wizardname" "specify a burner type cd or dvd:"
11 burnertype="burnertype = $REPLY"
13 booleanBox "$wizardname" "Make iso image only? or burn"
15 isoonly="isoonly = yes"
17 isoonly="isoonly = no"
21 inputBox "$wizardname" "Directory where to store the backups:"
23 backupdir="backupdir = $REPLY"
25 inputBox "$wizardname" "what name to give to the image file?"
27 imagefile="imagefile = $REPLY"
29 inputBox "$wizardname" "specify a burner device:"
31 device="device = $REPLY"
33 # target - root of system to be included
34 inputBox "$wizardname" "root of filesystem for burn:"
36 target="target = $REPLY"
41 formBegin "$wizardname: excludes"
42 for ((i=0; i < ${#makecd_excludes[@]} ; i++)); do
43 formItem exclude ${makecd_excludes[$i]}
58 makecd_excludes=($REPLY)
60 get_next_filename $configdirectory/20.makecd
61 cat >> $next_filename <<EOF
63 # TYP is cd or dvd AS WELL AS the disk inside!!
69 # iso or burn to cd/dvd?
72 # location for image file
78 # cd/dvd burner device
81 # dirs/files to include in the backup
84 # directories/files to be excluded
90 for ((j=0; j < ${#makecd_excludes[@]} ; j++)); do
91 echo "exclude = ${makecd_excludes[$j]}" >> $next_filename
94 chmod 600 $next_filename