From 0f135cc8fc451efbc6587cb8ea7d3030cf22b777 Mon Sep 17 00:00:00 2001 From: "Donald A. Cupp Jr" Date: Sun, 3 Jan 2021 14:19:08 -0800 Subject: [PATCH] modified: ts/build/packages/base/etc/init.d/pre-udev --- ts/build/packages/base/etc/init.d/pre-udev | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ts/build/packages/base/etc/init.d/pre-udev b/ts/build/packages/base/etc/init.d/pre-udev index 6719cc38f9..928cef136c 100755 --- a/ts/build/packages/base/etc/init.d/pre-udev +++ b/ts/build/packages/base/etc/init.d/pre-udev @@ -67,11 +67,14 @@ vga_quirks() # If we don't know by now which video module we are going to use, then we need to go ahead and write to the FB # to induce the console takeover, then we can detect EFI FB or fallback to uvesa openvt -f -c 1 -- echo -e "." - if module_available uvesafb; then - if [ ! -e /sys/devices/virtual/vtconsole/vtcon1 ]; then - busybox modprobe uvesafb > /dev/null 2>&1 - else - echo "X_DRIVER_NAME=fbdev" >> $TS_RUNTIME + # See if we still don't have a console + if [ ! -e /sys/devices/virtual/vtconsole/vtcon1 ]; then + if module_available uvesafb; then + if [ ! -e /sys/devices/virtual/vtconsole/vtcon1 ]; then + busybox modprobe uvesafb > /dev/null 2>&1 + else + echo "X_DRIVER_NAME=fbdev" >> $TS_RUNTIME + fi fi fi fi