|
我的U盘有buldr、burg.cfg、bucfg.fba三个文件
1、fbinsttool的burg的菜单内容
if test -f $prefix/bucfg.fba ; then
loopback cfg $prefix/bucfg.fba
set bootdev=$prefix
set prefix=(cfg)
else
if test -f /burg/bucfg.fba ; then
loopback cfg /burg/bucfg.fba
set bootdev=($root)/burg
set prefix=(cfg)
else
if test -f (boot)/bucfg.fba ; then
loopback cfg (boot)/bucfg.fba
set bootdev=(boot)
set prefix=(cfg)
else
if test -f (boot)/burg.cfg ; then
set prefix=(boot)
fi
fi
fi
fi
2、burg.cfg的内容
set gfxmode=800x600
. ${prefix}/gui.cfg
3、bucfg.fba中burg.cfg的内容
source $bootdev/burg.cfg
4、bucfg.fba中gui.cfg的内容
set theme_name=burg
if [ -s $prefix/burgenv ]; then
load_env
fi
set default="${saved_entry}"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function select_menu {
if menu_popup -t template_popup theme_menu ; then
free_config template_popup template_subitem menu class screen
load_config ${prefix}/themes/${theme_name}/theme ${prefix}/themes/custom/theme_${theme_name}
save_env theme_name
menu_refresh
fi
}
function toggle_fold {
if test -z $theme_fold ; then
set theme_fold=1
else
set theme_fold=
fi
save_env theme_fold
menu_refresh
}
function select_resolution {
if menu_popup -t template_popup resolution_menu ; then
menu_reload_mode
save_env gfxmode
fi
}
if test -f ${prefix}/themes/${theme_name}/theme ; then
insmod coreui
menu_region.text
load_string '+theme_menu { -burg { command="set theme_name=burg" }}'
load_string '+theme_menu { -ubuntu { command="set theme_name=ubuntu" }}'
load_string '+theme_menu { -ubuntu2 { command="set theme_name=ubuntu2" }}'
load_config ${prefix}/themes/conf.d/10_hotkey
load_config ${prefix}/themes/${theme_name}/theme ${prefix}/themes/custom/theme_${theme_name}
insmod vbe
insmod png
insmod jpeg
set gfxfont="Unifont Regular 16"
menu_region.gfx
vmenu resolution_menu
controller.ext
fi
也不知道上面的语句是什么意思,我把theme中的主题进行删除,并把gui.cfg中的load_string '+theme_menu { -ubuntu2 { command="set theme_name=ubuntu2" }}'这样语句删除,怎么就出错,应该怎样做才对 |
|