diff options
author | Dirk von Suchodoletz | 2010-08-13 19:10:24 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2010-08-13 19:10:24 +0200 |
commit | 8d50556230b8f973c48b058001425d9a5b23a03e (patch) | |
tree | 7ac4cefe88ba01aaac21794a5bc2c9d6f903979f /initramfs/stage3-stuff/bin/hwautocfg | |
parent | reenable splashy and vesafb until plymouth works (diff) | |
download | core-8d50556230b8f973c48b058001425d9a5b23a03e.tar.gz core-8d50556230b8f973c48b058001425d9a5b23a03e.tar.xz core-8d50556230b8f973c48b058001425d9a5b23a03e.zip |
Re-enabling traditional splashy via vesafb ... (for Ubuntu 10.04)
Diffstat (limited to 'initramfs/stage3-stuff/bin/hwautocfg')
-rwxr-xr-x | initramfs/stage3-stuff/bin/hwautocfg | 19 |
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 |