/usr/share/bashburn/lib/menus/advanced.sh is in bashburn 3.0.1-2.
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 | typeset -a configure_adv_changes # Global used by advanced and change_option.
config_adv_apply()
{
pretty_top
top_info_line
get_new_settings && return
conf_set_aval "${configure_adv_changes[@]}"
config_adv_revert
set_descriptors
}
config_adv_default()
{
pretty_top
top_info_line
get_really_sure && return
configure_adv_changes=( \
'BB_CDBURNCMD|cdrecord' \
'BB_DVDBURNCMD|growisofs' \
'BB_ISOCMD|mkisofs' \
'BB_DVDBLANK|dvd+rw-format' \
'BB_CDIMAGECMD|cdrdao' \
'BB_CDAUDIORIP|cdparanoia' \
'BB_READCD|mkisofs' \
'BB_READ_OPTS|-r -R -J -l --allow-leading-dots' \
'BB_MP3ENC|lame' \
'BB_MP3DEC|mpg123' \
'BB_OGGENC|oggenc' \
'BB_OGGDEC|oggdec' \
'BB_FLACCMD|flac' \
'BB_EJECT|eject' \
'BB_NORMCMD|normalize' \
)
conf_set_aval "${configure_adv_changes[@]}"
config_adv_revert
}
config_adv_revert()
{
configure_adv_changes=()
BB_ADVANCED_CONFIG_MODIFIED=0
}
advanced()
{
# Advanced menu
# Swap out the variables that track if something is modified.
CFG_CHANGES=configure_adv_changes
BB_ADVANCED_CONFIG_MODIFIED=0
BB_CONFIG_VAR=BB_ADVANCED_CONFIG_MODIFIED
bbconfmenu \
advancedmenu \
bb_adv_menutitle \
bb_conf_menu_toptext2 \
config_adv_apply \
config_adv_default \
config_adv_revert \
'get_confirm || break'
return 0
}
|