Skip to content

Commit

Permalink
Write data to console to recalculate size
Browse files Browse the repository at this point in the history
  • Loading branch information
zdykstra committed Feb 19, 2022
1 parent eac0547 commit 5a5ab0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/console-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@ fi
# There is nothing to do without a valid control_term device
[ -c "${control_term}" ] || exit 0

# print an "empty" string to the screen to force it to recalculate
# with out this, EFI frame buffers will possibly have the wrong size
echo -e "\033[0;30m ... \033[0m"

# Try to initialize the console
/lib/udev/console_init "${control_term##*/}" >/dev/null 2>&1

0 comments on commit 5a5ab0b

Please sign in to comment.