mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
rebuild locales after vconsole switch
This commit is contained in:
parent
bceae49b30
commit
ce3671800f
1 changed files with 11 additions and 3 deletions
|
@ -34,6 +34,9 @@ _do_vconsole() {
|
|||
_dialog --infobox "Setting console font ${_FONT} and keymap ${_KEYMAP}..." 3 80
|
||||
echo KEYMAP="${_KEYMAP}" > /etc/vconsole.conf
|
||||
echo FONT="${_FONT}" >> /etc/vconsole.conf
|
||||
if ! grep '^archboot' /etc/hostname; then
|
||||
locale-gen &>/dev/null
|
||||
fi
|
||||
systemctl restart systemd-vconsole-setup
|
||||
sleep 2
|
||||
}
|
||||
|
@ -42,11 +45,16 @@ _set_vconsole() {
|
|||
if grep -qw 'sun32' /etc/vconsole.conf; then
|
||||
_dialog --infobox "Detected big screen size, using 32 font size now..." 3 60
|
||||
_FONT="latarcyrheb-sun32"
|
||||
else
|
||||
_dialog --infobox "Normal screen size, using 16 font size now..." 3 60
|
||||
_FONT="latarcyrheb-sun16"
|
||||
fi
|
||||
sleep 2
|
||||
else
|
||||
_FONTS="latarcyrheb-sun16 Worldwide eurlatgr Europe"
|
||||
_CANCEL=
|
||||
#shellcheck disable=SC2086
|
||||
_dialog --menu "\n Select Console Font:\n\n Font Name Region" 12 40 14 ${_FONTS} 2>${_ANSWER} || _CANCEL=1
|
||||
_abort_dialog || return 1
|
||||
#shellcheck disable=SC2086
|
||||
_FONT=$(cat ${_ANSWER})
|
||||
fi
|
||||
echo "${_FONT}" > /tmp/.font
|
||||
# get list of 2 sign locale
|
||||
# ${KEYMAP} | grep -v '...' | grep "^[a-z]"
|
||||
|
|
Loading…
Reference in a new issue