mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1.1 KiB

  1. diff -Nur sysvinit-2.85.orig/src/bootlogd.c sysvinit-2.85/src/bootlogd.c
  2. --- sysvinit-2.85.orig/src/bootlogd.c 2001-12-09 15:01:28.000000000 +0100
  3. +++ sysvinit-2.85/src/bootlogd.c 2003-08-30 15:49:12.000000000 +0200
  4. @@ -318,7 +318,7 @@
  5. (void)ioctl(0, TIOCCONS, NULL);
  6. #if 1
  7. /* Work around bug in 2.1/2.2 kernels. Fixed in 2.2.13 and 2.3.18 */
  8. - if ((n = open("/dev/tty0", O_RDWR)) >= 0) {
  9. + if ((n = open("/dev/vc/0", O_RDWR)) >= 0) {
  10. (void)ioctl(n, TIOCCONS, NULL);
  11. close(n);
  12. }
  13. diff -Nur sysvinit-2.85.orig/src/paths.h sysvinit-2.85/src/paths.h
  14. --- sysvinit-2.85.orig/src/paths.h 2003-04-14 13:37:01.000000000 +0200
  15. +++ sysvinit-2.85/src/paths.h 2003-08-30 15:49:38.000000000 +0200
  16. @@ -13,7 +13,7 @@
  17. * as published by the Free Software Foundation; either version
  18. * 2 of the License, or (at your option) any later version.
  19. */
  20. -#define VT_MASTER "/dev/tty0" /* Virtual console master */
  21. +#define VT_MASTER "/dev/vc/0" /* Virtual console master */
  22. #define CONSOLE "/dev/console" /* Logical system console */
  23. #define SECURETTY "/etc/securetty" /* List of root terminals */
  24. #define SDALLOW "/etc/shutdown.allow" /* Users allowed to shutdown */