initial commit
This commit is contained in:
commit
f47a603473
|
@ -0,0 +1,52 @@
|
|||
Version=18.0
|
||||
|
||||
PREFIX = /usr/local
|
||||
|
||||
CFG = $(wildcard cfg/*.cfg)
|
||||
|
||||
MTHEME = \
|
||||
$(wildcard tromjaro-live/*.png) \
|
||||
tromjaro-live/theme.txt \
|
||||
tromjaro-live/*.pf2
|
||||
|
||||
MICONS= $(wildcard tromjaro-live/icons/*.png)
|
||||
|
||||
TZ = $(wildcard tz/*)
|
||||
|
||||
LOCALES = $(wildcard locales/*)
|
||||
|
||||
install_common:
|
||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/grub/cfg
|
||||
install -m0644 ${CFG} $(DESTDIR)$(PREFIX)/share/grub/cfg
|
||||
|
||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/grub/tz
|
||||
install -m0644 ${TZ} $(DESTDIR)$(PREFIX)/share/grub/tz
|
||||
|
||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/grub/locales
|
||||
install -m0644 ${LOCALES} $(DESTDIR)$(PREFIX)/share/grub/locales
|
||||
|
||||
uninstall_common:
|
||||
for f in ${CFG}; do rm -f $(DESTDIR)$(PREFIX)/share/grub/cfg/$$f; done
|
||||
for f in ${TZ}; do rm -f $(DESTDIR)$(PREFIX)/share/grub/tz/$$f; done
|
||||
for f in ${LOCALES}; do rm -f $(DESTDIR)$(PREFIX)/share/grub/locales/$$f; done
|
||||
|
||||
install_manjaro:
|
||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/grub/themes/tromjaro-live
|
||||
install -m0644 ${MTHEME} $(DESTDIR)$(PREFIX)/share/grub/themes/tromjaro-live
|
||||
|
||||
install -dm0755 $(DESTDIR)$(PREFIX)/share/grub/themes/tromjaro-live/icons
|
||||
install -m0644 ${MICONS} $(DESTDIR)$(PREFIX)/share/grub/themes/tromjaro-live/icons
|
||||
|
||||
uninstall_manjaro:
|
||||
for f in ${MTHEME}; do rm -f $(DESTDIR)$(PREFIX)/share/grub/theme/tromjaro-live/$$f; done
|
||||
for f in ${MICONS}; do rm -f $(DESTDIR)$(PREFIX)/share/grub/theme/tromjaro-live/icons/$$f; done
|
||||
|
||||
install: install_common install_tromjaro
|
||||
|
||||
uninstall: uninstall_common uninstall_tromjaro
|
||||
|
||||
dist:
|
||||
git archive --format=tar --prefix=grub-theme-$(Version)/ $(Version) | gzip -9 > grub-theme-$(Version).tar.gz
|
||||
gpg --detach-sign --use-agent grub-theme-$(Version).tar.gz
|
||||
|
||||
.PHONY: install uninstall dist
|
|
@ -0,0 +1,4 @@
|
|||
TORMjaro-grub-theme
|
||||
==================
|
||||
|
||||
TROMjaro's grub theme for install media
|
|
@ -0,0 +1,12 @@
|
|||
if [ -z "${def_bootlang}" ]; then
|
||||
def_bootlang="en_US"
|
||||
def_keyboard="us"
|
||||
def_timezone="UTC"
|
||||
def_drv="free"
|
||||
fi
|
||||
if [ -z "${bootlang}" ]; then
|
||||
bootlang="lang=${def_bootlang}"
|
||||
keyboard="keytable=${def_keyboard}"
|
||||
timezone="tz=${def_timezone}"
|
||||
drv="driver=${def_drv} nouveau.modeset=1 i915.modeset=1 radeon.modeset=1"
|
||||
fi
|
|
@ -0,0 +1,571 @@
|
|||
insmod font
|
||||
insmod keylayouts
|
||||
insmod part_msdos
|
||||
insmod part_gpt
|
||||
|
||||
export loaded
|
||||
export koptsok
|
||||
export disable_gfxterm
|
||||
export bootarch
|
||||
export firmware
|
||||
export firmware_found
|
||||
export from
|
||||
export fromiso
|
||||
export bootlang
|
||||
export keyboard
|
||||
export timezone
|
||||
export drv
|
||||
export hwclock
|
||||
export def_bootlang
|
||||
export def_keyboard
|
||||
export def_timezone
|
||||
export def_drv
|
||||
export menu_color_normal
|
||||
export menu_color_highlight
|
||||
export pager
|
||||
|
||||
function menu_help {
|
||||
check_help
|
||||
grub_help
|
||||
}
|
||||
|
||||
function check_help {
|
||||
if [ -z "${koptsok}" ]; then
|
||||
echo $"WARNING: nothing set"
|
||||
echo $" System will use defaults"
|
||||
echo " American English <> utc clock <> us "$"keyboard <> free drivers"
|
||||
echo ""
|
||||
fi
|
||||
}
|
||||
|
||||
function kopts_help {
|
||||
echo $"Example boot command line arguments:"
|
||||
echo $" Setup"
|
||||
echo " lang=<language>_<variant> keytable=<layout> tz=<region>/<city>"
|
||||
echo " hostname=<name> username=<name>"
|
||||
echo $" Kernel"
|
||||
echo " blacklist=<module>"
|
||||
echo $" Video"
|
||||
echo " <module>.modeset=0"
|
||||
echo " radeon.modeset=0 nouveau.modeset=0 i915.modeset=0"
|
||||
echo " video=VGA-1:1920x1080e DVI-0:800x600"
|
||||
echo ""
|
||||
}
|
||||
|
||||
function grub_help {
|
||||
echo $"To use the menu:"
|
||||
echo $" press up or down to move between items"
|
||||
echo $" press enter or right to select the item"
|
||||
echo $" press e to edit the current item"
|
||||
echo $" press c to go to the grub command line"
|
||||
echo ""
|
||||
echo $"Simply edit the first line of most menus to control them"
|
||||
echo $"Select or edit the blank line to enter command line arguments"
|
||||
echo ""
|
||||
}
|
||||
|
||||
function menu_reload {
|
||||
configfile /boot/grub/grub.cfg
|
||||
}
|
||||
|
||||
function menu_continue {
|
||||
echo -n $"Press Enter to continue"
|
||||
read mcont
|
||||
}
|
||||
|
||||
function prompt {
|
||||
echo -n "> "
|
||||
}
|
||||
|
||||
function is_efi {
|
||||
if [ "${grub_platform}" = "efi" ]; then
|
||||
return 0
|
||||
fi
|
||||
return 1
|
||||
}
|
||||
|
||||
function efi_detect {
|
||||
if is_efi ; then
|
||||
submenu --class=find.efi --hotkey=f "Detect EFI bootloaders" {
|
||||
efi_found=false
|
||||
|
||||
for efi in (*,gpt*)/efi/*/*.efi (*,gpt*)/efi/*/*/*.efi (*,gpt*)/*.efi (*,gpt*)/*/*.efi ; do
|
||||
regexp --set=1:efi_device '^\((.*)\)/' "${efi}"
|
||||
if [ -e "${efi}" ]; then
|
||||
efi_found=true
|
||||
|
||||
menuentry --class=efi "${efi}" "${efi_device}" {
|
||||
root="${2}"
|
||||
chainloader "${1}"
|
||||
}
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "${efi_found}" != true ]; then
|
||||
menuentry --hotkey=q --class=find.none "No EFI files detected." {menu_reload}
|
||||
else
|
||||
menuentry --hotkey=q --class=cancel "Cancel" {menu_reload}
|
||||
fi
|
||||
}
|
||||
fi
|
||||
}
|
||||
|
||||
function memtest_detect {
|
||||
if ! is_efi; then
|
||||
if [ -f /boot/memtest ]; then
|
||||
menuentry --class=memtest --hotkey=m "memtest" {linux16 /boot/$1}
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
function lang_setup {
|
||||
source /boot/grub/locales/${1}
|
||||
menu_reload
|
||||
}
|
||||
|
||||
function lang_menu {
|
||||
menuentry --class=lang.${ll} "lang=${ll}" "${ll}" {lang_setup "${2}"}
|
||||
}
|
||||
|
||||
function show_timezones {
|
||||
submenu --class=tz --hotkey=t "tz=${def_timezone}" {# set the timezone above with the editor
|
||||
if [ -n "$1" ];then
|
||||
if [ "$1" = "tz=${def_timezone}" ]; then
|
||||
default=0
|
||||
menuentry --class=cancel --hotkey=q "Cancel (${def_timezone})" {menu_reload}
|
||||
for tt in Africa America Asia Atlantic Australia Etc Europe Pacific; do
|
||||
submenu --class=tz.${tt} "${tt}" {
|
||||
menuentry --class=cancel --hotkey=q "Cancel (${def_timezone})" {menu_reload}
|
||||
source "/boot/grub/tz/${1}"
|
||||
}
|
||||
done
|
||||
else
|
||||
regexp -s newtz '^tz=(.*)' "$1"
|
||||
if [ -z "$newtz" ]; then
|
||||
def_timezone="$1"
|
||||
else
|
||||
def_timezone="$newtz"
|
||||
fi
|
||||
timezone="tz=$def_timezone"
|
||||
menu_reload
|
||||
fi
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
||||
function show_keymaps {
|
||||
submenu --class=kbd --hotkey=k "keytable=${def_keyboard}" {# set the timezone above with the editor
|
||||
if [ -n "$1" ]; then
|
||||
if [ "$1" = "keytable=${def_keyboard}" ]; then
|
||||
default=0
|
||||
menuentry --class=cancel --hotkey=q "Cancel (${def_keyboard})" {menu_reload}
|
||||
source /boot/grub/locales/keyboards
|
||||
else
|
||||
regexp -s newkey '^keytable=(.*)' "$1"
|
||||
if [ -z "$newkey" ]; then
|
||||
def_keyboard="$1"
|
||||
else
|
||||
def_keyboard="$newkey"
|
||||
fi
|
||||
keyboard="keytable=$def_keyboard"
|
||||
menu_reload
|
||||
fi
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
||||
function show_drivers {
|
||||
submenu --class=driver --hotkey=m "driver=${def_drv}" {# set the driver above with the editor
|
||||
if [ -n "$1" ]; then
|
||||
if [ "$1" = "driver=${def_drv}" ]; then
|
||||
default=0
|
||||
menuentry --class=cancel --hotkey=q "Cancel (${def_drv})" {menu_reload}
|
||||
source /boot/grub/mhwd.cfg
|
||||
else
|
||||
regexp -s newdrv '^driver=(.*)' "$1"
|
||||
if [ -z "${newdrv}" ]; then
|
||||
def_drv="$1"
|
||||
else
|
||||
def_drv="${newdrv}"
|
||||
fi
|
||||
newdrv="driver=${def_drv}"
|
||||
menu_reload
|
||||
fi
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
||||
function show_languages {
|
||||
submenu --hotkey=l --class=lang "lang=${def_bootlang}" {# set the timezone above with the editor
|
||||
if [ -n "$1" ]; then
|
||||
if [ "$1" = "lang=${def_bootlang}" ]; then
|
||||
default=0
|
||||
menuentry --class=lang.${def_bootlang} "lang=${def_bootlang}" {menu_reload}
|
||||
menuentry --class=lang.cs "Čeština" {lang_setup "cs_CZ"}
|
||||
menuentry --class=lang.da "Dansk" {lang_setup "da_DK"}
|
||||
submenu --class=lang.de "Deutsch" {
|
||||
for ll in de_DE de_AT de_BE de_CH de_LI de_LU; do
|
||||
lang_menu ${ll}
|
||||
done
|
||||
}
|
||||
submenu --class=lang.el "Ελληνικά" {
|
||||
for ll in el_GR el_CY; do
|
||||
lang_menu ${ll}
|
||||
done
|
||||
}
|
||||
submenu --class=lang.en "English" {
|
||||
for ll in en_US en_AG en_AU en_BW en_CA en_DK en_GB en_HK en_IE en_IN en_NG en_NZ en_PH en_SG en_ZA en_ZW; do
|
||||
lang_menu ${ll}
|
||||
done
|
||||
}
|
||||
submenu --class=lang.es "Español" {
|
||||
for ll in es_ES es_AR es_BO es_CL es_CO es_CR es_DO es_EC es_GT es_HN es_MX es_NI es_PA es_PE es_PR es_PY es_SV es_US es_UY es_VE; do
|
||||
lang_menu ${ll}
|
||||
done
|
||||
}
|
||||
submenu --class=lang.fr "Français" {
|
||||
for ll in fr_FR fr_BE fr_CA fr_CH fr_LU fr_NC; do
|
||||
lang_menu ${ll}
|
||||
done
|
||||
}
|
||||
menuentry --class=lang.he "עִבְרִית" {lang_setup "he_IL"}
|
||||
submenu --class=lang.it "Italiano" {
|
||||
for ll in it_IT it_CH; do
|
||||
lang_menu ${ll}
|
||||
done
|
||||
}
|
||||
menuentry --class=lang.ja "日本語" {lang_setup "ja_JP"}
|
||||
submenu --class=lang.nl "Nederlands" {
|
||||
for ll in nl_NL nl_AW nl_BE; do
|
||||
lang_menu ${ll}
|
||||
done
|
||||
}
|
||||
menuentry --class=lang.pl "Polski" {lang_setup "pl_PL"}
|
||||
submenu --class=lang.pt "Português" {
|
||||
for ll in pt_BR pt_PT; do
|
||||
lang_menu ${ll}
|
||||
done
|
||||
}
|
||||
menuentry --class=lang.ro "Română" {lang_setup "ro_RO"}
|
||||
submenu --class=lang.ru "Русский" {
|
||||
for ll in ru_RU ru_UA;do
|
||||
lang_menu ${ll}
|
||||
done
|
||||
}
|
||||
submenu --class=lang.zh "中文" {
|
||||
for ll in zh_CN zh_TW; do
|
||||
lang_menu ${ll}
|
||||
done
|
||||
}
|
||||
else
|
||||
regexp -s newlang '^lang=(.*)' "$1"
|
||||
if [ -z "$newlang" ]; then
|
||||
def_bootlang="$1"
|
||||
else
|
||||
def_bootlang="$newlang"
|
||||
fi
|
||||
bootlang="lang=$def_bootlang"
|
||||
if [ -f /boot/grub/locales/${def_bootlang} ]; then
|
||||
source /boot/grub/locales/${def_bootlang}
|
||||
fi
|
||||
menu_reload
|
||||
fi
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
||||
function boot_menu {
|
||||
if [ "${hwclock}" = "utc=yes" ]; then
|
||||
class="utc"
|
||||
title="utc"
|
||||
clockset=""
|
||||
elif [ "${timezone}${bootlang}" = "" ]; then
|
||||
class="unset"
|
||||
title="utc"
|
||||
clockset=""
|
||||
else
|
||||
title="${def_timezone}"
|
||||
class="tz.${def_timezone}"
|
||||
clockset="utc=yes"
|
||||
fi
|
||||
min2d="$MINUTE"
|
||||
if regexp '(^.$)' "$min2d"; then
|
||||
min2d="0${min2d}"
|
||||
fi
|
||||
hour2d="$HOUR"
|
||||
if regexp '(^.$)' "$hour2d"; then
|
||||
hour2d="0${hour2d}"
|
||||
fi
|
||||
menuentry --class=tz.$class --hotkey=u "$hour2d:$min2d $title" "$clockset" {
|
||||
hwclock="$2"
|
||||
menu_reload
|
||||
}
|
||||
show_timezones
|
||||
show_keymaps
|
||||
show_languages
|
||||
show_drivers
|
||||
default=5
|
||||
}
|
||||
|
||||
function boot_defaults {
|
||||
source /boot/grub/defaults.cfg
|
||||
}
|
||||
|
||||
function grub_reboot {
|
||||
menuentry " " {true}
|
||||
menuentry --class=reboot "Reboot!" {reboot}
|
||||
}
|
||||
|
||||
function grub_bios_installed {
|
||||
if ! is_efi; then
|
||||
menuentry "" {true}
|
||||
menuentry --class=tromjaro "Installed BIOS-System on $installed" {exit}
|
||||
fi
|
||||
}
|
||||
|
||||
function grub_efi_installed {
|
||||
if is_efi; then
|
||||
menu "" {true}
|
||||
menu --class=tromjaro "Installed EFI-System on $installed" {exit}
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
function check {
|
||||
cliname="$1"
|
||||
varname="$2"
|
||||
if [ "${optname}" != "${cliname}" ]; then
|
||||
return 1
|
||||
fi
|
||||
if [ -z "$varname" ]; then
|
||||
varname="${cliname}"
|
||||
fi
|
||||
if [ -z "${optval}" ]; then
|
||||
eval ${varname}="${cliname}"
|
||||
else
|
||||
eval ${varname}="${cliname}=${optval}"
|
||||
if [ "${optname}" = "lang" ]; then
|
||||
lang_setup ${optval}
|
||||
elif [ "${optname}" = "keytable" ]; then
|
||||
def_keyboard="${optval}"
|
||||
elif [ "${optname}" = "tz" ]; then
|
||||
def_timezone="${optval}"
|
||||
elif [ "${optname}" = "driver" ]; then
|
||||
def_drv="${optval}"
|
||||
fi
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
function checkinput {
|
||||
newinput="$1"
|
||||
newoutput=""
|
||||
for newcli in ${newinput} ; do
|
||||
optname=""
|
||||
optval=""
|
||||
optdone=""
|
||||
regexp -s optname '^(.+)=.*$' "${newcli}"
|
||||
if [ -z "${optname}" ]; then
|
||||
optname="${newcli}"
|
||||
else
|
||||
regexp -s optval '^.+=(.*)$' "${newcli}"
|
||||
fi
|
||||
for tocheck in "lang bootlang" "keytable keyboard" "tz timezone" "utc hwclock" "driver drv"; do
|
||||
if check $tocheck ; then
|
||||
optdone="Y"
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [ -z "${optdone}" ]; then
|
||||
if [ -z "${newoutput}" ]; then
|
||||
newoutput="${newcli}"
|
||||
else
|
||||
newoutput="${newoutput} ${newcli}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
function new2cli {
|
||||
newinput="$1"
|
||||
if [ -n "$newinput" ]; then
|
||||
checkinput "$newinput"
|
||||
if [ -n "${newoutput}" ]; then
|
||||
newinput="${newoutput}"
|
||||
if [ -n "$clinput" ]; then
|
||||
clinput="$clinput $newinput"
|
||||
else
|
||||
clinput="$newinput"
|
||||
fi
|
||||
export clinput
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
function getargs {
|
||||
args=""
|
||||
for a in $@; do
|
||||
if [ -n "${a}" ]; then
|
||||
args="${args} ${a}"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
function bootcheck {
|
||||
getargs
|
||||
}
|
||||
|
||||
pager=1
|
||||
|
||||
insmod regexp
|
||||
insmod datehook
|
||||
if ! is_efi; then
|
||||
insmod part_gpt
|
||||
fi
|
||||
|
||||
if is_efi; then
|
||||
insmod efi_gop
|
||||
insmod efi_uga
|
||||
fi
|
||||
|
||||
if [ -z "${loaded}" ]; then
|
||||
iscd=""
|
||||
auto=""
|
||||
regexp -s iscd '^(cd)' "${root}"
|
||||
if [ "${iscd}" != "cd" -a -e (cd) ]; then
|
||||
probe -s cdp -u cd
|
||||
probe -s hdp -u $root
|
||||
if [ -n "$cdp" -a "$cdp" = "$hdp" ]; then
|
||||
iscd="cd"
|
||||
fi
|
||||
fi
|
||||
if [ "${root}" != "hd96" -a "${iscd}" != "cd" ]; then
|
||||
auto="${auto}"
|
||||
fi
|
||||
source /boot/grub/variable.cfg
|
||||
loaded=true
|
||||
|
||||
if keystatus --shift; then
|
||||
disable_gfxterm=true
|
||||
fi
|
||||
|
||||
if [ "${disable_gfxterm}" != "true" ]; then
|
||||
if loadfont /boot/grub/unicode.pf2 ; then
|
||||
if [ -z "$gfxmode" ] ; then
|
||||
gfxmode=1024x768,auto # 1280x1024,1024x768,800x600,640x480 possible value
|
||||
gfxpayload=keep
|
||||
fi
|
||||
if keystatus --ctrl; then
|
||||
gfxok=""
|
||||
pager=0
|
||||
while [ -z "$gfxok" ]; do
|
||||
echo "gfxmode=$gfxmode"
|
||||
echo "Input new mode or Enter to confirm"
|
||||
prompt
|
||||
read gfxmodein
|
||||
if [ -n "$gfxmodein" ]; then
|
||||
gfxmode="$gfxmodein"
|
||||
echo ""
|
||||
else
|
||||
gfxok="true"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
insmod all_video
|
||||
insmod gfxterm
|
||||
if terminal_output --append gfxterm; then
|
||||
terminal_output --remove console
|
||||
else
|
||||
disable_gfxterm=true
|
||||
fi
|
||||
else
|
||||
disable_gfxterm=true
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "${disable_gfxterm}" != "true" -a -f "${grub_theme}" ]; then
|
||||
insmod gfxmenu
|
||||
themedir=""
|
||||
regexp -s themedir '^(.*)/.*$' "${grub_theme}"
|
||||
for themefont in $themedir/*.pf2 $themedir/f/*.pf2; do
|
||||
if [ -f "${themefont}" ]; then
|
||||
loadfont "${themefont}"
|
||||
fi
|
||||
done
|
||||
for imagetype in jpg jpeg png tga; do
|
||||
for themeimage in ${themedir}/*.${imagetype}; do
|
||||
if [ -f "${themeimage}" ]; then
|
||||
if [ "${imagetype}" = "jpg" ]; then
|
||||
insmod jpeg
|
||||
else
|
||||
insmod $imagetype
|
||||
fi
|
||||
fi
|
||||
done
|
||||
done
|
||||
theme=${grub_theme}
|
||||
export theme
|
||||
fi
|
||||
|
||||
menu_color_normal=cyan/blue
|
||||
menu_color_highlight=white/blue
|
||||
|
||||
if [ -n "${iso_path}" ]; then
|
||||
auto="img_dev=/dev/disk/by-uuid/${rootuuid} img_loop=${iso_path}"
|
||||
fi
|
||||
|
||||
export auto
|
||||
fi
|
||||
|
||||
boot_defaults
|
||||
|
||||
for kopt in "${clinput}" "${bootlang}" "${keyboard}" "${timezone}" "${hwclock}" "${drv}" "${auto}"; do
|
||||
if [ -n "${kopt}" ]; then
|
||||
kopts="${kopts} ${kopt}"
|
||||
fi
|
||||
done
|
||||
if [ -n "${bootlang}${keyboard}${timezone}${drv}" ]; then
|
||||
koptsok="true"
|
||||
fi
|
||||
|
||||
boot_menu
|
||||
|
||||
source /boot/grub/kernels.cfg
|
||||
if [ -n "$clinput" ]; then
|
||||
menuentry --class=edit "$clinput" {
|
||||
if [ -n "$1" ]; then
|
||||
clinput="$@"
|
||||
else
|
||||
unset clinput
|
||||
fi
|
||||
menu_reload
|
||||
}
|
||||
fi
|
||||
menuentry --class=type --hotkey=tab "" {# set arguments above with the editor
|
||||
getargs $@
|
||||
pager=0
|
||||
if [ -z "$args" ]; then
|
||||
check_help
|
||||
kopts_help
|
||||
echo $"Input command line options, press Enter to continue"
|
||||
prompt
|
||||
read newinput
|
||||
else
|
||||
newinput="$args"
|
||||
fi
|
||||
new2cli "$newinput"
|
||||
pager=1
|
||||
menu_reload
|
||||
}
|
||||
menuentry --hotkey=h --class=help "help" {
|
||||
pager=0
|
||||
menu_help
|
||||
menu_continue
|
||||
pager=1
|
||||
}
|
||||
efi_detect
|
||||
memtest_detect
|
||||
search --no-floppy --file /etc/issue --set installed
|
||||
grub_bios_installed
|
||||
grub_efi_installed
|
||||
grub_reboot
|
|
@ -0,0 +1,48 @@
|
|||
for kk in /boot/vmlinu*-*64; do
|
||||
if [ "$kk" != "/boot/vmlinu*-*64" ]; then
|
||||
have64="true"
|
||||
if cpuid -l; then
|
||||
have_kernel="true"
|
||||
else
|
||||
have_kernel="false"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
for kk in /boot/vmlinu*-*86; do
|
||||
if [ "$kk" != "/boot/vmlinu*-*86" ]; then
|
||||
have32="true"
|
||||
have_kernel="true"
|
||||
fi
|
||||
done
|
||||
if [ "${have_kernel}" != "true" ]; then
|
||||
menuentry --class=find.none "NO SUITABLE KERNELS AVAILABLE" {echo $@ echo "There are no kernels suitable for this machine available."
|
||||
echo ""
|
||||
if ! cpuid -l; then
|
||||
echo "This machine is NOT 64bit capable."
|
||||
echo ""
|
||||
fi
|
||||
echo "There are no suitable kernels available"
|
||||
if [ "${have64}" == "true" ]; then
|
||||
echo ""
|
||||
echo "It appears you are trying to boot a 64bit release on a 32bit machine"
|
||||
echo "This cannot work!"
|
||||
fi
|
||||
echo ""
|
||||
echo "Press Escape to return to the main menu"
|
||||
sleep --interruptible 9999
|
||||
menu_reload
|
||||
}
|
||||
else
|
||||
title=""
|
||||
for kopt in @ARCH@ $kopts @DEFAULT_ARGS@ @BOOT_ARGS@; do
|
||||
if [ -n "$title" ] ; then
|
||||
title="$title $kopt";
|
||||
else
|
||||
title="$kopt";
|
||||
fi;
|
||||
done
|
||||
menuentry "Boot: @DIST_NAME@.@ARCH@ @PROFILE@ " --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
|
||||
linux /boot/vmlinuz-$2
|
||||
initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
|
||||
}
|
||||
fi
|
|
@ -0,0 +1 @@
|
|||
source /boot/grub/grub.cfg
|
|
@ -0,0 +1,12 @@
|
|||
for d in free nonfree; do
|
||||
menuentry "${d}" "${d}" {
|
||||
if [ "${2}" = "free" ]; then
|
||||
def_drv="${2}"
|
||||
drv="driver=${def_drv} nouveau.modeset=1 i915.modeset=1 radeon.modeset=1"
|
||||
else
|
||||
def_drv="${2}"
|
||||
drv="driver=${def_drv} nouveau.modeset=0 i915.modeset=1 radeon.modeset=0"
|
||||
fi
|
||||
menu_reload
|
||||
}
|
||||
done
|
|
@ -0,0 +1,2 @@
|
|||
grub_theme=/boot/grub/themes/@ISO_NAME@-live/theme.txt
|
||||
timeout=10
|
|
@ -0,0 +1,9 @@
|
|||
lang=C
|
||||
bootlang="lang=C_"
|
||||
def_bootlang="C_"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="us"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Etc/UTC"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=be
|
||||
bootlang="lang=be_BY"
|
||||
def_bootlang="be_BY"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="by"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Minsk"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=bg
|
||||
bootlang="lang=bg_BG"
|
||||
def_bootlang="bg_BG"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="bg"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Sofia"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=bs
|
||||
bootlang="lang=bs_BA"
|
||||
def_bootlang="bs_BA"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="ba"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Sarajevo"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=cs
|
||||
bootlang="lang=cs_CZ"
|
||||
def_bootlang="cs_CZ"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="cz"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Prague"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=da
|
||||
bootlang="lang=da_DK"
|
||||
def_bootlang="da_DK"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="dk"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Copenhagen"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=de
|
||||
bootlang="lang=de_AT"
|
||||
def_bootlang="de_AT"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="de"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Vienna"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=de
|
||||
bootlang="lang=de_BE"
|
||||
def_bootlang="de_BE"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="be"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Brussels"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=de
|
||||
bootlang="lang=de_CH"
|
||||
def_bootlang="de_CH"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="de_CH-latin1"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Zurich"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=de
|
||||
bootlang="lang=de_DE"
|
||||
def_bootlang="de_DE"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="de"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Berlin"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=de
|
||||
bootlang="lang=de_LI"
|
||||
def_bootlang="de_LI"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="de"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Vaduz"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=de
|
||||
bootlang="lang=de_LU"
|
||||
def_bootlang="de_LU"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="de"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Luxembourg"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=el
|
||||
bootlang="lang=el_CY"
|
||||
def_bootlang="el_CY"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="gr"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Athens"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=el
|
||||
bootlang="lang=el_GR"
|
||||
def_bootlang="el_GR"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="gr"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Athens"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=en
|
||||
bootlang="lang=en_AG"
|
||||
def_bootlang="en_AG"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="us"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/Antigua"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=en
|
||||
bootlang="lang=en_AU"
|
||||
def_bootlang="en_AU"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="us"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Australia/Sydney"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=en
|
||||
bootlang="lang=en_BW"
|
||||
def_bootlang="en_BW"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="us"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Africa/Gaborone"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=en
|
||||
bootlang="lang=en_CA"
|
||||
def_bootlang="en_CA"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="us"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/Toronto"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=en
|
||||
bootlang="lang=en_DK"
|
||||
def_bootlang="en_DK"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="dk"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Copenhagen"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=en
|
||||
bootlang="lang=en_GB"
|
||||
def_bootlang="en_GB"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="gb"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/London"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=en
|
||||
bootlang="lang=en_HK"
|
||||
def_bootlang="en_HK"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="us"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Asia/Hong_Kong"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=en
|
||||
bootlang="lang=en_IE"
|
||||
def_bootlang="en_IE"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="ie"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Dublin"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=en
|
||||
bootlang="lang=en_IN"
|
||||
def_bootlang="en_IN"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="us"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Asia/Kolkata"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=en
|
||||
bootlang="lang=en_NG"
|
||||
def_bootlang="en_NG"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="us"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Africa/Lagos"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=en
|
||||
bootlang="lang=en_NZ"
|
||||
def_bootlang="en_NZ"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="us"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Pacific/Auckland"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=en
|
||||
bootlang="lang=en_PH"
|
||||
def_bootlang="en_PH"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="us"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Asia/Manila"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=en
|
||||
bootlang="lang=en_SG"
|
||||
def_bootlang="en_SG"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="us"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Asia/Singapore"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=en
|
||||
bootlang="lang=en_US"
|
||||
def_bootlang="en_US"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="us"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/New_York"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=en
|
||||
bootlang="lang=en_ZA"
|
||||
def_bootlang="en_ZA"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="us"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Africa/Johannesburg"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=en
|
||||
bootlang="lang=en_ZW"
|
||||
def_bootlang="en_ZW"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="us"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Africa/Harare"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=es
|
||||
bootlang="lang=es_AR"
|
||||
def_bootlang="es_AR"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="latam"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/Argentina/Buenos_Aires"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=es
|
||||
bootlang="lang=es_BO"
|
||||
def_bootlang="es_BO"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="latam"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/La_Paz"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=es
|
||||
bootlang="lang=es_CL"
|
||||
def_bootlang="es_CL"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="latam"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/Santiago"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=es
|
||||
bootlang="lang=es_CO"
|
||||
def_bootlang="es_CO"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="latam"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/Bogota"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=es
|
||||
bootlang="lang=es_CR"
|
||||
def_bootlang="es_CR"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="latam"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/Costa_Rica"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=es
|
||||
bootlang="lang=es_DO"
|
||||
def_bootlang="es_DO"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="latam"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/Santo_Domingo"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=es
|
||||
bootlang="lang=es_EC"
|
||||
def_bootlang="es_EC"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="latam"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/Guayaquil"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=es
|
||||
bootlang="lang=es_ES"
|
||||
def_bootlang="es_ES"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="es"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Madrid"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=es
|
||||
bootlang="lang=es_GT"
|
||||
def_bootlang="es_GT"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="latam"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/Guatemala"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=es
|
||||
bootlang="lang=es_HN"
|
||||
def_bootlang="es_HN"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="latam"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/Tegucigalpa"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=es
|
||||
bootlang="lang=es_MX"
|
||||
def_bootlang="es_MX"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="latam"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/Mexico_City"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=es
|
||||
bootlang="lang=es_NI"
|
||||
def_bootlang="es_NI"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="latam"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/Managua"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=es
|
||||
bootlang="lang=es_PA"
|
||||
def_bootlang="es_PA"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="latam"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/Panama"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=es
|
||||
bootlang="lang=es_PE"
|
||||
def_bootlang="es_PE"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="latam"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/Lima"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=es
|
||||
bootlang="lang=es_PR"
|
||||
def_bootlang="es_PR"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="latam"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/Puerto_Rico"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=es
|
||||
bootlang="lang=es_PY"
|
||||
def_bootlang="es_PY"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="latam"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/Asuncion"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=es
|
||||
bootlang="lang=es_SV"
|
||||
def_bootlang="es_SV"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="latam"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/El_Salvador"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=es
|
||||
bootlang="lang=es_US"
|
||||
def_bootlang="es_US"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="latam"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/New_York"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=es
|
||||
bootlang="lang=es_UY"
|
||||
def_bootlang="es_UY"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="latam"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/Montevideo"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=es
|
||||
bootlang="lang=es_VE"
|
||||
def_bootlang="es_VE"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="latam"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/Caracas"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=et
|
||||
bootlang="lang=et_EE"
|
||||
def_bootlang="et_EE"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="et"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Tallinn"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=fi
|
||||
bootlang="lang=fi_FI"
|
||||
def_bootlang="fi_FI"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="fi"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Helsinki"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=fr
|
||||
bootlang="lang=fr_BE"
|
||||
def_bootlang="fr_BE"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="be"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Brussels"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=fr
|
||||
bootlang="lang=fr_CA"
|
||||
def_bootlang="fr_CA"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="ca"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/Toronto"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=fr
|
||||
bootlang="lang=fr_CH"
|
||||
def_bootlang="fr_CH"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="ch"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Zurich"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=fr
|
||||
bootlang="lang=fr_FR"
|
||||
def_bootlang="fr_FR"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="fr"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Paris"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=fr
|
||||
bootlang="lang=fr_LU"
|
||||
def_bootlang="fr_LU"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="fr"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Luxembourg"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=fr
|
||||
bootlang="lang=fr_NC"
|
||||
def_bootlang="fr_NC"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="fr"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Pacific/Noumea"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=ga
|
||||
bootlang="lang=ga_IE"
|
||||
def_bootlang="ga_IE"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="ie"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Dublin"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=he
|
||||
bootlang="lang=he_IL"
|
||||
def_bootlang="he_IL"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="il"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Asia/Jerusalem"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=hr
|
||||
bootlang="lang=hr_HR"
|
||||
def_bootlang="hr_HR"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="hr"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Zagreb"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=hu
|
||||
bootlang="lang=hu_HU"
|
||||
def_bootlang="hu_HU"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="hu"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Budapest"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=is
|
||||
bootlang="lang=is_IS"
|
||||
def_bootlang="is_IS"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="is"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Atlantic/Reykjavik"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=it
|
||||
bootlang="lang=it_CH"
|
||||
def_bootlang="it_CH"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="it"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Zurich"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=it
|
||||
bootlang="lang=it_IT"
|
||||
def_bootlang="it_IT"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="it"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Rome"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=ja
|
||||
bootlang="lang=ja_JP"
|
||||
def_bootlang="ja_JP"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="jp"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Asia/Tokyo"
|
||||
fi
|
|
@ -0,0 +1,6 @@
|
|||
for kk in us ba be bg br by ca ch cz de dk es et fi fr gb gr hr hu ie il is it jp kr latam no pl pt ro ru se si sk tr ua; do
|
||||
menuentry "keytable=${kk}" "${kk}" {def_keyboard="${2}"
|
||||
keyboard="keytable=${2}"
|
||||
menu_reload
|
||||
}
|
||||
done
|
|
@ -0,0 +1,9 @@
|
|||
lang=ko
|
||||
bootlang="lang=ko_KR"
|
||||
def_bootlang="ko_KR"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="kr"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Asia/Seoul"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=nb
|
||||
bootlang="lang=nb_NO"
|
||||
def_bootlang="nb_NO"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="no"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Oslo"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=nl
|
||||
bootlang="lang=nl_AW"
|
||||
def_bootlang="nl_AW"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="us"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/Aruba"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=nl
|
||||
bootlang="lang=nl_BE"
|
||||
def_bootlang="nl_BE"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="be"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Brussels"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=nl
|
||||
bootlang="lang=nl_NL"
|
||||
def_bootlang="nl_NL"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="us"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Amsterdam"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=nn
|
||||
bootlang="lang=nn_NO"
|
||||
def_bootlang="nn_NO"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="no"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Oslo"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=pl
|
||||
bootlang="lang=pl_PL"
|
||||
def_bootlang="pl_PL"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="pl"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Warsaw"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=pt
|
||||
bootlang="lang=pt_BR"
|
||||
def_bootlang="pt_BR"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="br"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="America/Sao_Paulo"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=pt
|
||||
bootlang="lang=pt_PT"
|
||||
def_bootlang="pt_PT"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="pt"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Lisbon"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=ro
|
||||
bootlang="lang=ro_RO"
|
||||
def_bootlang="ro_RO"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="ro"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Bucharest"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=ru
|
||||
bootlang="lang=ru_RU"
|
||||
def_bootlang="ru_RU"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="ru"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Moscow"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=ru
|
||||
bootlang="lang=ru_UA"
|
||||
def_bootlang="ru_UA"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="ru"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Kiev"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=se
|
||||
bootlang="lang=se_FI"
|
||||
def_bootlang="se_FI"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="fi"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Helsinki"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=se
|
||||
bootlang="lang=se_NO"
|
||||
def_bootlang="se_NO"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="no"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Oslo"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=se
|
||||
bootlang="lang=se_SE"
|
||||
def_bootlang="se_SE"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="se"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Stockholm"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=sk
|
||||
bootlang="lang=sk_SK"
|
||||
def_bootlang="sk_SK"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="sk"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Bratislava"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=sl
|
||||
bootlang="lang=sl_SI"
|
||||
def_bootlang="sl_SI"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="si"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Ljubljana"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=sv
|
||||
bootlang="lang=sv_FI"
|
||||
def_bootlang="sv_FI"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="se"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Helsinki"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=sv
|
||||
bootlang="lang=sv_SE"
|
||||
def_bootlang="sv_SE"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="se"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Stockholm"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=tr
|
||||
bootlang="lang=tr_CY"
|
||||
def_bootlang="tr_CY"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="tr"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Istanbul"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=tr
|
||||
bootlang="lang=tr_TR"
|
||||
def_bootlang="tr_TR"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="tr"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Istanbul"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=uk
|
||||
bootlang="lang=uk_UA"
|
||||
def_bootlang="uk_UA"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="ua"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Europe/Kiev"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=zh
|
||||
bootlang="lang=zh_CN"
|
||||
def_bootlang="zh_CN"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="us"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Asia/Shanghai"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=zh
|
||||
bootlang="lang=zh_HK"
|
||||
def_bootlang="zh_HK"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="us"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Asia/Hong_Kong"
|
||||
fi
|
|
@ -0,0 +1,9 @@
|
|||
lang=zh
|
||||
bootlang="lang=zh_SG"
|
||||
def_bootlang="zh_SG"
|
||||
if [ -z "${keyboard}" ]; then
|
||||
def_keyboard="us"
|
||||
fi
|
||||
if [ -z "${timezone}" ]; then
|
||||
def_timezone="Asia/Singapore"
|
||||
fi
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue