Package: debirf
Version: 0.33

In the serial-terminal module, line 21,

  if printf "%s" "$param" | egrep -q '^console=ttyS[0-9]+,[0-9]+n8$'; then

the egrep regex to detect a serial console is anchored with ^ at the front, 
assuming that this console entry will be the first thing on the cmdline. 
This prevents one from doing such things as

GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8"

in /etc/default/grub.

Just removing the anchor, like this

--- serial-terminal.orig        2012-09-24 22:09:36.869210563 -0700
+++ serial-terminal     2012-09-21 16:25:24.897176295 -0700
@@ -18,7 +18,7 @@
 #!/bin/sh
 # find the first serial console kernel parameter and place a getty there:
 for param in $(cat /proc/cmdline); do
-  if printf "%s" "$param" | egrep -q '^console=ttyS[0-9]+,[0-9]+n8$'; then
+  if printf "%s" "$param" | egrep -q 'console=ttyS[0-9]+,[0-9]+n8$'; then
     port="$(printf "%s" "$param" | cut -f2 -d= | cut -f1 -d,)"
     speed="$(printf "%s" "$param" | cut -f2 -d, | cut -f1 -dn)"
     exec /sbin/getty -L "$port" "$speed"

makes it so that a getty runs on the first ttyS match on the line which is 
probably what's wanted (although I suppose someone might list multiple, 
like a real serial and an ipmi serial, but that would take more enhancing 
of this module).

Thanks,

-- 
Matt Taggart
tagg...@debian.org


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to