# Calculate append=patch format=patch link=/bootmenu/system.config mirror
(.*);
(.*);
(.*);
(.*);
(.*);
(.*);
menuentry "\2" {
echo "Language: ${bootlang}"
echo "Keyboard: ${bootkeymap}"
echo "Timezone: ${boottimezone}"
echo "Audio: ${bootaudio}"
echo "Bootparams: ${bootparams}"
echo "Please wait..."
linux \3 \4 \6 #?cl_ver>=3.6.7.41##-cl_builder_boot_params-##cl_ver# ${bootparams} ${nomodeset_opt} ${noefi_opt} ${no_gfxmode}
initrd \5
}
HEADER
if [ x$timeout = x ]; then
set timeout=5
fi
if [ x$default = x ]; then
set default=0
fi
set fallback=2
set pager=1
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if loadfont /boot/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
if [ x$no_gfxmode = x ]; then
insmod gfxterm
terminal_output gfxterm
#?pkg(media-gfx/grub-splashes-calculate)=>17,18#
set color_normal=black/black
set color_highlight=light-green/black
#pkg#
#?pkg(media-gfx/grub-splashes-calculate)>=18#
set color_normal=white/black
set color_highlight=black/light-gray
#pkg#
else
terminal_output console
#?pkg(media-gfx/grub-splashes-calculate)=>17,18#
set color_normal=white/black
set color_highlight=black/white
#pkg#
#?pkg(media-gfx/grub-splashes-calculate)>=18#
set color_normal=white/black
set color_highlight=black/light-gray
#pkg#
fi
insmod gettext
fi
if [ -f /boot/grub/grub-calculate.png ]; then
insmod png
background_image -m stretch /boot/grub/grub-calculate.png
fi
if [ x$noefi_opt = x ]; then
noefi_opt=''
export noefi_opt
fi
if [ "x$nomodeset_opt" = "x" ]; then
#?pkg(x11-base/xorg-server)==#
nomodeset_opt='nomodeset'
#!pkg#
nomodeset_opt=''
#pkg#
export nomodeset_opt
fi
bootparams=calculate=
if [ x$bootlang != x ]
then
bootparams=${bootparams}lang:${bootlang}
fi
bootparams=${bootparams},
if [ x$bootkeymap != x ]
then
bootparams=${bootparams}keymap:${bootkeymap}
fi
bootparams=${bootparams},
if [ x$bootaudio != x ]
then
bootparams=${bootparams}audio:${bootaudio}
fi
bootparams=${bootparams},
if [ x$boottimezone != x ]
then
bootparams=${bootparams}timezone:${boottimezone}
fi
bootparams=${bootparams},
if [ x$bootvga != x ]
then
bootparams=${bootparams}resolution:${bootvga}
fi
bootparams=${bootparams},
if [ x$bootvideo != x ]
then
bootparams=${bootparams}video:${bootvideo}
fi
bootparams=${bootparams},
if [ x$bootcomposite != x ]
then
bootparams=${bootparams}composite:${bootcomposite}
fi
if [ x$bootparams = xcalculate=,,,,, ]
then
bootparams=
fi
insmod part_gpt
if [ x$no_gfxmode = x ]; then
menuentry "Disable grub gfxmode" {
set no_gfxmode="grub_nogfxmode"
export no_gfxmode
set timeout=30
export timeout
configfile /boot/grub/grub.cfg
}
fi
FOOTER
submenu "Advanced Options" {
#?pkg(sys-apps/memtest86+)!=#
menuentry "memtest86+" {
linux16 /isolinux/memtest
}
#pkg#
menuentry "Disable EFI" {
echo "Disabling EFI..."
set noefi_opt="noefi"
export noefi_opt
configfile /boot/grub/grub.cfg
}
#?pkg(x11-base/xorg-server)==#
menuentry "Enable modesetting" {
echo "Enabling modesetting..."
set nomodeset_opt=" "
export nomodeset_opt
configfile /boot/grub/grub.cfg
}
#pkg#
}
if [ x$no_gfxmode = x ]; then
source /boot/grub/lang.cfg
else
source /boot/grub/lang_nogfx.cfg
fi
source /boot/grub/audio.cfg
source /boot/grub/timezone.cfg
#?os_builder_linux_system==desktop#
source /boot/grub/video.cfg
source /boot/grub/vga.cfg
#os_builder_linux_system#