summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/bin/hwautocfg
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs/stage3-stuff/bin/hwautocfg')
-rwxr-xr-xinitramfs/stage3-stuff/bin/hwautocfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/initramfs/stage3-stuff/bin/hwautocfg b/initramfs/stage3-stuff/bin/hwautocfg
index 0165a455..210cae1c 100755
--- a/initramfs/stage3-stuff/bin/hwautocfg
+++ b/initramfs/stage3-stuff/bin/hwautocfg
@@ -30,7 +30,7 @@ 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 strinstr "vga=" "${KCMDLINE}"; then
+if strinfile "vga=" /proc/cmdline; then
( modprobe vesafb fbcon 2>/dev/null
hwinfo --gfxcard >/etc/hwinfo.gfxcard ) &
elif [ -e /etc/init-hooks/00-started/xserver.sh -o \