Добавлена возможнсть выбора звуковой системы при загрузки с live UEFI

mhiretskiy 1462
parent 61466451b3
commit 916b5449c3

@ -0,0 +1,16 @@
function commonaudio {
echo "Switching to: $1"
set bootaudio=$2
export bootaudio
configfile /boot/grub/grub.cfg
}
submenu "Audio Selection" {
menuentry "ALSA" {
commonaudio "$chosen" alsa
}
menuentry "PulseAudio" {
commonaudio "$chosen" pulseaudio
}
}

@ -10,6 +10,7 @@
echo "Language: ${bootlang}"
echo "Keyboard: ${bootkeymap}"
echo "Timezone: ${boottimezone}"
echo "Audio: ${bootaudio}"
echo "Bootparams: ${bootparams}"
echo "Please wait..."
linux \3 \4 \6 ${bootparams} ${noefi_opt} ${no_gfxmode}
@ -93,6 +94,12 @@ then
fi
bootparams=${bootparams},
if [ x$bootaudio != x ]
then
bootparams=${bootparams}audio:${bootaudio}
fi
bootparams=${bootparams},
if [ x$boottimezone != x ]
then
bootparams=${bootparams}timezone:${boottimezone}
@ -155,6 +162,7 @@ if [ x$no_gfxmode = x ]; then
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

Loading…
Cancel
Save