1 # -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*-
2 # vim: set filetype=sh sw=3 sts=3 expandtab autoindent:
4 HELPERS="$HELPERS makecd:makecd_backup"
5 wizardname="makecd action wizard"
7 declare -a makecd_excludes
11 inputBox "$wizardname" "specify a burner type cd or dvd:"
13 burnertype="burnertype = $REPLY"
15 booleanBox "$wizardname" "Make iso image only? or burn"
17 isoonly="isoonly = yes"
19 isoonly="isoonly = no"
23 inputBox "$wizardname" "Directory where to store the backups:"
25 backupdir="backupdir = $REPLY"
27 inputBox "$wizardname" "what name to give to the image file?"
29 imagefile="imagefile = $REPLY"
31 inputBox "$wizardname" "specify a burner device:"
33 device="device = $REPLY"
35 # target - root of system to be included
36 inputBox "$wizardname" "root of filesystem for burn:"
38 target="target = $REPLY"
43 formBegin "$wizardname: excludes"
44 for ((i=0; i < ${#makecd_excludes[@]} ; i++)); do
45 formItem exclude ${makecd_excludes[$i]}
60 makecd_excludes=($REPLY)
62 get_next_filename $configdirectory/20.makecd
63 cat >> $next_filename <<EOF
65 # TYP is cd or dvd AS WELL AS the disk inside!!
71 # iso or burn to cd/dvd?
74 # location for image file
80 # cd/dvd burner device
83 # dirs/files to include in the backup
86 # directories/files to be excluded
92 for ((j=0; j < ${#makecd_excludes[@]} ; j++)); do
93 echo "exclude = ${makecd_excludes[$j]}" >> $next_filename
96 chmod 600 $next_filename