mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
check on Full HD screen
This commit is contained in:
parent
8f415eeed6
commit
9137e79ea5
2 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ do_vconsole() {
|
|||
|
||||
set_vconsole() {
|
||||
# check for fb size
|
||||
FB_SIZE="$(cat $(find /sys -wholename '*fb0/modes' | cut -d 'x' -f 1 | sed -e 's#.*:##g'))"
|
||||
FB_SIZE="$(cat $(find /sys -wholename '*fb0/modes') | cut -d 'x' -f 1 | sed -e 's#.*:##g')"
|
||||
if [[ "${FB_SIZE}" -gt '2000' ]]; then
|
||||
SIZE="32"
|
||||
else
|
||||
|
|
|
@ -4,7 +4,7 @@ _vconsole() {
|
|||
if ! [[ -e "/.vconsole-run" ]]; then
|
||||
touch /.vconsole-run
|
||||
FB_SIZE="$(cat $(find /sys -wholename '*fb0/modes') | cut -d 'x' -f 1 | sed -e 's#.*:##g')"
|
||||
if [[ "${FB_SIZE}" -gt '2000' ]]; then
|
||||
if [[ "${FB_SIZE}" -gt '1900' ]]; then
|
||||
SIZE="32"
|
||||
else
|
||||
SIZE="16"
|
||||
|
|
Loading…
Reference in a new issue