mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00:37 +02:00
better loops in vconsole
This commit is contained in:
parent
53d7977fc8
commit
c6ababf4d1
1 changed files with 9 additions and 3 deletions
|
@ -26,7 +26,7 @@ _abort() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
_do_vconsole() {
|
_vconsole() {
|
||||||
_dialog --infobox "Setting vconsole font ${_FONT} and keymap ${_KEYMAP}..." 3 80
|
_dialog --infobox "Setting vconsole font ${_FONT} and keymap ${_KEYMAP}..." 3 80
|
||||||
echo KEYMAP="${_KEYMAP}" > /etc/vconsole.conf
|
echo KEYMAP="${_KEYMAP}" > /etc/vconsole.conf
|
||||||
echo FONT="${_FONT}" >> /etc/vconsole.conf
|
echo FONT="${_FONT}" >> /etc/vconsole.conf
|
||||||
|
@ -99,14 +99,20 @@ if [[ -e /tmp/.vconsole-running ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
: >/tmp/.vconsole-running
|
: >/tmp/.vconsole-running
|
||||||
if ! _set_vconsole; then
|
if ! _vconsole_font; then
|
||||||
|
[[ -e /tmp/.vconsole ]] && rm /tmp/.vconsole
|
||||||
|
[[ -e /tmp/.vconsole-running ]] && rm /tmp/.vconsole-running
|
||||||
|
clear
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if ! _vconsole_keymap; then
|
||||||
[[ -e /tmp/.vconsole ]] && rm /tmp/.vconsole
|
[[ -e /tmp/.vconsole ]] && rm /tmp/.vconsole
|
||||||
[[ -e /tmp/.vconsole-running ]] && rm /tmp/.vconsole-running
|
[[ -e /tmp/.vconsole-running ]] && rm /tmp/.vconsole-running
|
||||||
clear
|
clear
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
[[ -e /tmp/.vconsole-running ]] && rm /tmp/.vconsole-running
|
[[ -e /tmp/.vconsole-running ]] && rm /tmp/.vconsole-running
|
||||||
_do_vconsole
|
_vconsole
|
||||||
clear
|
clear
|
||||||
exit 0
|
exit 0
|
||||||
# vim: set ts=4 sw=4 et:
|
# vim: set ts=4 sw=4 et:
|
||||||
|
|
Loading…
Reference in a new issue