Skip to content

Commit

Permalink
modified: ts/build/packages/base/etc/init.d/pre-udev
Browse files Browse the repository at this point in the history
  • Loading branch information
Doncuppjr committed Jan 3, 2021
1 parent a83a4f6 commit 0f135cc
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions ts/build/packages/base/etc/init.d/pre-udev
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f135cc

Please sign in to comment.