don't use devfs names: /dev/vc/0 -> /dev/tty0
authorAndreas Oberritter <obi@opendreambox.org>
Fri, 4 Feb 2011 23:57:43 +0000 (00:57 +0100)
committerAndreas Oberritter <obi@opendreambox.org>
Fri, 4 Feb 2011 23:57:43 +0000 (00:57 +0100)
lib/driver/rcconsole.cpp
lib/gdi/fb.cpp

index 97a6e7c7c22354fcc9c0ac308541b0954caf67bc..77f432273551f7e7c7ecd68dce6f999615da519e 100644 (file)
@@ -103,7 +103,7 @@ class eRCConsoleInit
        eRCConsoleDriver driver;
        eRCConsole device;
 public:
-       eRCConsoleInit(): driver("/dev/vc/0"), device(&driver)
+       eRCConsoleInit(): driver("/dev/tty0"), device(&driver)
        {
        }
 };
index cde3e3572f382cc589f3207f9a743cbcba850abf..7ee555c1f266391aefc9dfba2b18d0acb7469df5 100644 (file)
@@ -83,12 +83,12 @@ nolfb:
 
 int fbClass::showConsole(int state)
 {
-       int fd=open("/dev/vc/0", O_RDWR);
+       int fd=open("/dev/tty0", O_RDWR);
        if(fd>=0)
        {
                if(ioctl(fd, KDSETMODE, state?KD_TEXT:KD_GRAPHICS)<0)
                {
-                       eDebug("setting /dev/vc/0 status failed.");
+                       eDebug("setting /dev/tty0 status failed.");
                }
                close(fd);
        }