/usr/share/bashburn/lib/menus/configure.sh is in bashburn 3.0.1-2~deb7u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | # BB_CONFIG_MODIFIED is 0 if no configparams were modified and 1 if
# any of them were. Once the config params are written out then it
# gets reset back to 0
typeset -i BB_CONFIG_MODIFIED=0
typeset -i BB_ADVANCED_CONFIG_MODIFIED=0
# BB_CONFIG_VAR is equal to BB_CONFIG_MODIFIED (not $BB_CONFIG_MODIFIED)
# unless we are in the advanced menu. Then it will be set
# to BB_ADVANCED_CONFIG_MODIFIED.
typeset BB_CONFIG_VAR
typeset -a configure_changes # Global used by configure and change_option.
config_apply()
{
pretty_top
top_info_line
get_new_settings && return
conf_set_aval "${configure_changes[@]}"
config_revert
set_descriptors
}
config_default()
{
pretty_top
top_info_line
get_really_sure && return
configure_changes=( \
'BBISCONF|0' \
'BBCDWRITER|<Change me>' \
'BBCDROM|<Change me>' \
'BBCDMNT|<Change me>' \
'BBSPEED|-1' \
'BBBLANKING|fast' \
'BBNUMDEV|1' \
'BBBURNDIR|/tmp/burn' \
'BBFIFODIR|/tmp' \
'BBDESCRIPTION|Burnt with BashBurn' \
'BBAUTHOR|<Change me>' \
'BBLABEL|BashBurn CD/DVD' \
'BBNORMALIZE|no' \
'BBDRIVEROPT|' \
'BBDELTEMPBURN|no' \
'BBOVERBURN|no' \
'BBBITRATE|192' \
'BBLANG|English' \
'BBDTAO|-tao' \
'BBPADDING|-pad' \
)
conf_set_aval "${configure_changes[@]}"
config_revert
# bb_parse_config
}
config_revert()
{
configure_changes=()
BB_CONFIG_MODIFIED=0
}
configure()
{
CFG_CHANGES=configure_changes
BB_CONFIG_MODIFIED=0
BB_CONFIG_VAR=BB_CONFIG_MODIFIED
bbconfmenu \
conf_menuitems \
bb_conf_menu_toptext1 \
bb_conf_menu_toptext2 \
config_apply \
config_default \
config_revert \
'get_confirm || break'
return 0
}
|