[PATCH] fix ppc terminal settings (#156411)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I *think* this is correct, although I haven't tested it. Opinions?

Bill
Index: init.c
===================================================================
RCS file: /usr/local/CVS/anaconda/loader2/init.c,v
retrieving revision 1.43
diff -u -r1.43 init.c
--- init.c	8 Apr 2005 18:04:08 -0000	1.43
+++ init.c	3 May 2005 19:18:51 -0000
@@ -600,9 +600,6 @@
     for (i = 0; consoles[i] != NULL; i++) {
 #if defined(__powerpc__)
         if ((fd = open(consoles[i], O_RDWR)) >= 0 && !tcgetattr(fd, &mode) && !termcmp(&cmode, &mode)) {
-            cfd = open("/dev/console", O_WRONLY);
-            tcsetattr(cfd,TCSANOW,&orig_cmode);
-            close(cfd); 
 #else
         if ((fd = open(consoles[i], O_RDWR)) >= 0) {
 #endif
@@ -613,6 +610,12 @@
             break;
         }
     }
+
+#if defined(__powerpc__)
+    cfd = open("/dev/console", O_WRONLY);
+    tcsetattr(cfd,TCSANOW,&orig_cmode);
+    close(cfd); 
+#endif
 
     if ((fd < 0) && (ioctl (0, TIOCLINUX, &twelve) < 0)) {
 	isSerial = 2;

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux