mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
fix parameter naming _
This commit is contained in:
parent
f2d12db7ff
commit
d764c53a4d
2 changed files with 9 additions and 9 deletions
|
@ -7,13 +7,13 @@
|
||||||
# wait for modules to initialize cmompletely
|
# wait for modules to initialize cmompletely
|
||||||
udevadm settle
|
udevadm settle
|
||||||
# get screen setting mode from /sys
|
# get screen setting mode from /sys
|
||||||
FB_SIZE="$(sed -e 's#.*:##g' -e 's#x.*##g' /sys/class/graphics/fb0/modes 2>/dev/null)"
|
_FB_SIZE="$(sed -e 's#.*:##g' -e 's#x.*##g' /sys/class/graphics/fb0/modes 2>/dev/null)"
|
||||||
if [[ "${FB_SIZE}" -gt '1900' ]]; then
|
if [[ "${_FB_SIZE}" -gt '1900' ]]; then
|
||||||
SIZE="32"
|
_SIZE="32"
|
||||||
else
|
else
|
||||||
SIZE="16"
|
_SIZE="16"
|
||||||
fi
|
fi
|
||||||
# update vconsole.conf accordingly
|
# update vconsole.conf accordingly
|
||||||
echo KEYMAP=us >/etc/vconsole.conf
|
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
|
/lib/systemd/systemd-vconsole-setup
|
||||||
|
|
|
@ -128,11 +128,11 @@ done
|
||||||
# fix parallels screen
|
# fix parallels screen
|
||||||
[[ "${_ARCH}" == "aarch64" ]] && sleep 1
|
[[ "${_ARCH}" == "aarch64" ]] && sleep 1
|
||||||
# get screen setting mode from /sys
|
# get screen setting mode from /sys
|
||||||
FB_SIZE="$(sed -e 's#.*:##g' -e 's#x.*##g' /sys/class/graphics/fb0/modes 2>/dev/null)"
|
_FB_SIZE="$(sed -e 's#.*:##g' -e 's#x.*##g' /sys/class/graphics/fb0/modes 2>/dev/null)"
|
||||||
if [[ "${FB_SIZE}" -gt '1900' ]]; then
|
if [[ "${_FB_SIZE}" -gt '1900' ]]; then
|
||||||
SIZE="32"
|
_SIZE="32"
|
||||||
else
|
else
|
||||||
SIZE="16"
|
_SIZE="16"
|
||||||
fi
|
fi
|
||||||
# it needs one echo before, in order to reset the consolefont!
|
# it needs one echo before, in order to reset the consolefont!
|
||||||
_msg "Initializing Console..."
|
_msg "Initializing Console..."
|
||||||
|
|
Loading…
Reference in a new issue