Hey, I like devfs.

Try /dev/fb/0 if /dev/fb0 fails.
This commit is contained in:
Daniel Stone 2004-05-28 04:56:49 +00:00
parent a7b42f685e
commit 6af411b02e

View File

@ -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;
}