diff options
author | intrigeri <intrigeri@boum.org> | 2007-10-12 17:06:09 +0000 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2007-10-12 17:06:09 +0000 |
commit | 579ea902ba24854b3c9acb307cda7e996e8e41a3 (patch) | |
tree | 373ce0a2242050dad65b84950520c6d44a9445fc /handlers/makecd.helper.in | |
parent | be75e4e6c536882c14db9a41c61585e7a9c045f6 (diff) | |
download | backupninja-579ea902ba24854b3c9acb307cda7e996e8e41a3.tar.gz backupninja-579ea902ba24854b3c9acb307cda7e996e8e41a3.tar.bz2 |
fixed autotools build, broken since r466, inhandlers/Makefile.am
Diffstat (limited to 'handlers/makecd.helper.in')
-rw-r--r-- | handlers/makecd.helper.in | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/handlers/makecd.helper.in b/handlers/makecd.helper.in new file mode 100644 index 0000000..f83b541 --- /dev/null +++ b/handlers/makecd.helper.in @@ -0,0 +1,97 @@ +# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*- + +HELPERS="$HELPERS makecd:makecd_backup" +wizardname="makecd action wizard" + +declare -a makecd_excludes + +makecd_wizard() { + + inputBox "$wizardname" "specify a burner type cd or dvd:" + [ $? = 1 ] && return + burnertype="burnertype = $REPLY" + + booleanBox "$wizardname" "Make iso image only? or burn" + if [ $? = 0 ]; then + isoonly="isoonly = yes" + else + isoonly="isoonly = no" + fi + + # backupdir + inputBox "$wizardname" "Directory where to store the backups:" + [ $? = 1 ] && return + backupdir="backupdir = $REPLY" + + inputBox "$wizardname" "what name to give to the image file?" + [ $? = 1 ] && return + imagefile="imagefile = $REPLY" + + inputBox "$wizardname" "specify a burner device:" + [ $? = 1 ] && return + device="device = $REPLY" + + # target - root of system to be included + inputBox "$wizardname" "root of filesystem for burn:" + [ $? = 1 ] && return + target="target = $REPLY" + + + # excludes + + formBegin "$wizardname: excludes" + for ((i=0; i < ${#makecd_excludes[@]} ; i++)); do + formItem exclude ${makecd_excludes[$i]} + done + formItem exclude + formItem exclude + formItem exclude + formItem exclude + formItem exclude + formItem exclude + formItem exclude + formItem exclude + formItem exclude + formDisplay + [ $? = 1 ] && return; + + unset makecd_excludes + makecd_excludes=($REPLY) + + get_next_filename $configdirectory/20.makecd + cat >> $next_filename <<EOF + +# TYP is cd or dvd AS WELL AS the disk inside!! +$burnertype + +# not yet supported +system = no + +# iso or burn to cd/dvd? +$isoonly + +# location for image file +$backupdir + +# image filename +$imagefile + +# cd/dvd burner device +$device + +# dirs/files to include in the backup +$target + +# directories/files to be excluded +# exclude = /proc +# exclude = /sys +# exclude = /dev +EOF + + for ((j=0; j < ${#makecd_excludes[@]} ; j++)); do + echo "exclude = ${makecd_excludes[$j]}" >> $next_filename + done + + chmod 600 $next_filename +} + |