FS#4316 - Status messages malformed when using serial console
Attached to Project:
Arch Linux
Opened by Carl Chave (sodface) - Wednesday, 29 March 2006, 18:24 GMT
Last edited by Dan McGee (toofishes) - Wednesday, 12 September 2007, 15:39 GMT
Opened by Carl Chave (sodface) - Wednesday, 29 March 2006, 18:24 GMT
Last edited by Dan McGee (toofishes) - Wednesday, 12 September 2007, 15:39 GMT
|
Details
The output of the "stty size" command in /etc/rc.d/functions
returns "0 0" when using a serial console, resulting in a
bad value for $STAT_COL and subsequently deltext().
Changing the code to the following produces satisfactory output for my setup: STAT_COL=$(stty size) STAT_COL=${STAT_COL##* } if [ "$STAT_COL" = "0" ]; then STAT_COL=80 fi STAT_COL=$[ $STAT_COL - 13 ] Above suggested code borrowed from: http://wiki.linuxfromscratch.org/lfs/ticket/325 |
This task depends upon
Closed by Dan McGee (toofishes)
Wednesday, 12 September 2007, 15:39 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in new initscripts release
Wednesday, 12 September 2007, 15:39 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in new initscripts release
STAT_COL=$(stty size)
STAT_COL=${STAT_COL##* }
if [ "$STAT_COL" = "0" ]; then
tset -Q
STAT_COL=$(stty size)
STAT_COL=${STAT_COL##* }
fi
STAT_COL=$[ $STAT_COL - 13 ]
http://archlinux.org/pipermail/arch-dev-public/2007-August/001436.html
for a hopeful fix. Suggestions here were incorporated, please give me feedback by trying out the package in testing.