mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
start setting directly
This commit is contained in:
parent
72df051757
commit
a07079ed8e
2 changed files with 9 additions and 8 deletions
|
@ -4,13 +4,6 @@
|
|||
ANSWER="/tmp/.km"
|
||||
TITLE="Arch Linux Console Font And Keymap Setting"
|
||||
LIST_MAPS="localectl list-keymaps --no-pager"
|
||||
if [[ "${1}" = "--setup" ]]; then
|
||||
set_vconsole || return 1
|
||||
do_vconsole
|
||||
EXIT="Return to Main Menu"
|
||||
else
|
||||
EXIT="Exit"
|
||||
fi
|
||||
|
||||
abort()
|
||||
{
|
||||
|
@ -135,6 +128,14 @@ if [[ -e /tmp/.km-running ]]; then
|
|||
fi
|
||||
: >/tmp/.km-running
|
||||
|
||||
if [[ "${1}" = "--setup" ]]; then
|
||||
set_vconsole || return 1
|
||||
do_vconsole
|
||||
EXIT="Return to Main Menu"
|
||||
else
|
||||
EXIT="Exit"
|
||||
fi
|
||||
|
||||
while true; do
|
||||
mainmenu
|
||||
done
|
||||
|
|
|
@ -21,7 +21,7 @@ set_vconsole() {
|
|||
elif [[ -e /usr/bin/archboot-km.sh ]]; then
|
||||
archboot-km.sh --setup && NEXTITEM="1"
|
||||
else
|
||||
DIALOG --msgbox "Error:\nkm script not found, aborting keyboard and console setting" 0 0
|
||||
DIALOG --msgbox "Error:\nkm script not found, aborting console and keyboard setting." 0 0
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue