fix parameter naming _

This commit is contained in:
Tobias Powalowski 2023-11-20 13:52:19 +01:00
parent f2d12db7ff
commit d764c53a4d
2 changed files with 9 additions and 9 deletions

View file

@ -7,13 +7,13 @@
# wait for modules to initialize cmompletely
udevadm settle
# get screen setting mode from /sys
FB_SIZE="$(sed -e 's#.*:##g' -e 's#x.*##g' /sys/class/graphics/fb0/modes 2>/dev/null)"
if [[ "${FB_SIZE}" -gt '1900' ]]; then
SIZE="32"
_FB_SIZE="$(sed -e 's#.*:##g' -e 's#x.*##g' /sys/class/graphics/fb0/modes 2>/dev/null)"
if [[ "${_FB_SIZE}" -gt '1900' ]]; then
_SIZE="32"
else
SIZE="16"
_SIZE="16"
fi
# update vconsole.conf accordingly
echo KEYMAP=us >/etc/vconsole.conf
echo FONT=ter-v${SIZE}n >>/etc/vconsole.conf
echo FONT=ter-v${_SIZE}n >>/etc/vconsole.conf
/lib/systemd/systemd-vconsole-setup

View file

@ -128,11 +128,11 @@ done
# fix parallels screen
[[ "${_ARCH}" == "aarch64" ]] && sleep 1
# get screen setting mode from /sys
FB_SIZE="$(sed -e 's#.*:##g' -e 's#x.*##g' /sys/class/graphics/fb0/modes 2>/dev/null)"
if [[ "${FB_SIZE}" -gt '1900' ]]; then
SIZE="32"
_FB_SIZE="$(sed -e 's#.*:##g' -e 's#x.*##g' /sys/class/graphics/fb0/modes 2>/dev/null)"
if [[ "${_FB_SIZE}" -gt '1900' ]]; then
_SIZE="32"
else
SIZE="16"
_SIZE="16"
fi
# it needs one echo before, in order to reset the consolefont!
_msg "Initializing Console..."