mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
shorten display resolution check
This commit is contained in:
parent
2c986c4007
commit
cb0a1aed3a
1 changed files with 4 additions and 4 deletions
|
@ -1,11 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#
|
||||
# archboot-vconsole.sh - sets bigger font on bigger display resolutions
|
||||
# archboot--detect-vconsole.sh:
|
||||
# sets bigger font on bigger display resolutions
|
||||
# by Tobias Powalowski <tpowa@archlinux.org>
|
||||
#
|
||||
udevadm settle
|
||||
FB_SIZE="$(cut -d 'x' -f 1 /sys/class/graphics/fb0/modes 2>/dev/null | sed -e 's#.*:##g')"
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue