1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 53_bootlogd_ttyB.dpatch by <jdthood@yahoo.co.uk>
4
## All lines beginning with `## DP:' are a description of the patch.
8
diff -urNad --exclude=CVS --exclude=.svn ./src/bootlogd.c /tmp/dpep-work.tNbXVe/trunk/src/bootlogd.c
9
--- ./src/bootlogd.c 2006-01-23 12:22:09.000000000 +0100
10
+++ /tmp/dpep-work.tNbXVe/trunk/src/bootlogd.c 2006-01-23 12:26:26.000000000 +0100
15
+ { "ttyB", "/dev/ttyB%s", NULL },
16
{ "ttySC", "/dev/ttySC%s", "/dev/ttsc/%s" },
17
{ "ttyS", "/dev/ttyS%s", "/dev/tts/%s" },
18
{ "tty", "/dev/tty%s", "/dev/vc/%s" },
20
* Devices to try as console if not found on kernel command line.
21
* Tried from left to right (as opposed to kernel cmdline).
23
-char *defcons[] = { "tty0", "hvc0", "ttyS0", "ttySC0", NULL };
24
+char *defcons[] = { "tty0", "hvc0", "ttyS0", "ttySC0", "ttyB0", NULL };
30
* OK, so find console= in /proc/cmdline.
31
* Parse in reverse, opening as we go.
33
- * Valid console devices: ttySC, ttyS, tty, hvc.