start setting directly

This commit is contained in:
Tobias Powalowski 2022-11-28 08:56:43 +01:00
parent 72df051757
commit a07079ed8e
2 changed files with 9 additions and 8 deletions

View file

@ -4,13 +4,6 @@
ANSWER="/tmp/.km" ANSWER="/tmp/.km"
TITLE="Arch Linux Console Font And Keymap Setting" TITLE="Arch Linux Console Font And Keymap Setting"
LIST_MAPS="localectl list-keymaps --no-pager" 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() abort()
{ {
@ -135,6 +128,14 @@ if [[ -e /tmp/.km-running ]]; then
fi fi
: >/tmp/.km-running : >/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 while true; do
mainmenu mainmenu
done done

View file

@ -21,7 +21,7 @@ set_vconsole() {
elif [[ -e /usr/bin/archboot-km.sh ]]; then elif [[ -e /usr/bin/archboot-km.sh ]]; then
archboot-km.sh --setup && NEXTITEM="1" archboot-km.sh --setup && NEXTITEM="1"
else 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 fi
} }