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.

43 lines
2.0 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/sysvinit/dev_vc_0.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. diff -Nur sysvinit-2.85.orig/src/bootlogd.c sysvinit-2.85/src/bootlogd.c
  20. --- sysvinit-2.85.orig/src/bootlogd.c 2001-12-09 15:01:28.000000000 +0100
  21. +++ sysvinit-2.85/src/bootlogd.c 2003-08-30 15:49:12.000000000 +0200
  22. @@ -318,7 +318,7 @@
  23. (void)ioctl(0, TIOCCONS, NULL);
  24. #if 1
  25. /* Work around bug in 2.1/2.2 kernels. Fixed in 2.2.13 and 2.3.18 */
  26. - if ((n = open("/dev/tty0", O_RDWR)) >= 0) {
  27. + if ((n = open("/dev/vc/0", O_RDWR)) >= 0) {
  28. (void)ioctl(n, TIOCCONS, NULL);
  29. close(n);
  30. }
  31. diff -Nur sysvinit-2.85.orig/src/paths.h sysvinit-2.85/src/paths.h
  32. --- sysvinit-2.85.orig/src/paths.h 2003-04-14 13:37:01.000000000 +0200
  33. +++ sysvinit-2.85/src/paths.h 2003-08-30 15:49:38.000000000 +0200
  34. @@ -13,7 +13,7 @@
  35. * as published by the Free Software Foundation; either version
  36. * 2 of the License, or (at your option) any later version.
  37. */
  38. -#define VT_MASTER "/dev/tty0" /* Virtual console master */
  39. +#define VT_MASTER "/dev/vc/0" /* Virtual console master */
  40. #define CONSOLE "/dev/console" /* Logical system console */
  41. #define SECURETTY "/etc/securetty" /* List of root terminals */
  42. #define SDALLOW "/etc/shutdown.allow" /* Users allowed to shutdown */