You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
476 B

3 years ago
submenu $"Change Kernel Flavour (press F5)" --hotkey 'f5' --id 'kflavour' {
insmod regexp
regexp -s 1:kflavours -s 2:kflavourstr '(.*) (.*)' "@KFLAVOUR@"
menuentry "${kflavourstr}" {
KFLAVOUR=
export KFLAVOUR
configfile ${prefix}/grub.cfg
}
for kflavourstr in ${kflavours}; do
menuentry "${kflavourstr}" {
KFLAVOUR="-$1"
export KFLAVOUR
configfile ${prefix}/grub.cfg
}
done
menuentry $"Return to the Main menu" {
configfile ${prefix}/grub.cfg
}
}