From 6af411b02e808220d3afcef14abb97eec86cf1f3 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Fri, 28 May 2004 04:56:49 +0000 Subject: [PATCH] Hey, I like devfs. Try /dev/fb/0 if /dev/fb0 fails. --- hw/kdrive/fbdev/fbdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/kdrive/fbdev/fbdev.c b/hw/kdrive/fbdev/fbdev.c index ea2fb4c1e..d904a4aa1 100644 --- a/hw/kdrive/fbdev/fbdev.c +++ b/hw/kdrive/fbdev/fbdev.c @@ -38,7 +38,8 @@ fbdevInitialize (KdCardInfo *card, FbdevPriv *priv) { int k; unsigned long off; - if ((priv->fd = open("/dev/fb0", O_RDWR)) < 0) { + if ((priv->fd = open("/dev/fb0", O_RDWR)) < 0 && \ + (priv->fd = open("/dev/fb/0", O_RDWR)) < 0) { perror("Error opening /dev/fb0"); return FALSE; }