summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinitramfs/stage3-stuff/bin/hwautocfg19
1 files changed, 11 insertions, 8 deletions
diff --git a/initramfs/stage3-stuff/bin/hwautocfg b/initramfs/stage3-stuff/bin/hwautocfg
index 09eb62da..0165a455 100755
--- a/initramfs/stage3-stuff/bin/hwautocfg
+++ b/initramfs/stage3-stuff/bin/hwautocfg
@@ -30,12 +30,15 @@ echo "/sbin/mdev" >/proc/sys/kernel/hotplug
modprobe -a ${MODPRV} usbhid hid-bright 2>/dev/null &
# get information on the graphics adaptor if bootsplash or xserver plugins are
# present and the new drm/kms infrastructure is present
-if [ -e /etc/init-hooks/00-started/xserver.sh -o \
- -e /etc/init-hooks/05-started/bootsplash.sh ] && \
- [ -e /lib/modules/${KERNEL}/kernel/drivers/gpu ]; then
- # check for the standard modules (single gpu, multiple connector only)
- ( hwinfo --gfxcard >/etc/hwinfo.gfxcard
- case $(cat /etc/hwinfo.gfxcard) in
+if strinstr "vga=" "${KCMDLINE}"; then
+ ( modprobe vesafb fbcon 2>/dev/null
+ hwinfo --gfxcard >/etc/hwinfo.gfxcard ) &
+elif [ -e /etc/init-hooks/00-started/xserver.sh -o \
+ -e /etc/init-hooks/05-started/bootsplash.sh ] && \
+ [ -e /lib/modules/${KERNEL}/kernel/drivers/gpu ]; then
+ # check for the standard modules (single gpu, multiple connector only)
+ ( hwinfo --gfxcard >/etc/hwinfo.gfxcard
+ case $(cat /etc/hwinfo.gfxcard) in
*i915*)
modprobe -a ${MODPRV} i915 2>/dev/null
;;
@@ -54,8 +57,8 @@ if [ -e /etc/init-hooks/00-started/xserver.sh -o \
*)
modprobe -a ${MODPRV} r128 savage sis tdfx ttm via
;;
- esac
- modprobe -a drm fbcon; mdev -s ) &
+ esac
+ modprobe -a drm fbcon; mdev -s ) &
fi
# check and then load appropriate network card modules