bug-sh-utils
[Top][All Lists]
Advanced

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

"stty" under Linux doesn't recognize serial console? (Debian package ver


From: Ralf G. R. Bergs
Subject: "stty" under Linux doesn't recognize serial console? (Debian package ver. 2.0-7)
Date: Tue, 04 Dec 2001 09:51:35 +0100

Hi there,

I'm running a headless Debian box. I don't have a VGA card in this box, but 
I'm using a serial console instead.

I often had the problem that "shutdown" or "reboot" would hang. Upon further 
investigation I found out that the "stty" process was hanging. When I killed 
"stty" the system properly shut down/rebooted.

I attribute this hanging to the fact that "stty" doesn't properly detect it's 
running on a system with only a serial console. As a temporary fix I've 
changed /etc/init.d/rc (this is the offending location where "stty" is invoked 
upon shutdown) as follows:

  # 2001-12-01 rabe: Only execute if NOT on serial console
  grep console=ttyS /proc/cmdline >/dev/null 2>&1
  if [ $? == 1 ]; then
    # Set onlcr to avoid staircase effect.
    stty onlcr 0>&1
  fi

I recognize that this is pretty much of a hack, so I'd like to ask you to try 
to reproduce and, if possible, fix the problem. I'm running Debian 2.2 stable.

Thanks,

Ralf


-- 
Verkaufe Original-BMW-Raeder:                    L I N U X       .~.
http://adsl-bergs.rz.rwth-aachen.de/~rabe       The  Choice      /V\
                                                 of a  GNU      /( )\
                                                Generation      ^^-^^





reply via email to

[Prev in Thread] Current Thread [Next in Thread]