check on Full HD screen

This commit is contained in:
Tobias Powalowski 2022-11-28 15:07:51 +01:00
parent 8f415eeed6
commit 9137e79ea5
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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"