﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
367	lfs-bootscripts 1.9, wrong column count over serial connection	list@…	lfs-book@…	"I found following bug in /etc/rc.d/init.d/functions. 
If you use a serial console ""stty size"" (line 16) always reports ""0 0"". 
When you start something like ""/etc/rc.d/init.d/sysklogd start"" the ""[  OK  ]"" 
message beginns at column 0 and overwrites the ""starting ..."" text. 
Following patch resolves this problem. 
 
============== snip ==================== 
--- functions.orig      2002-05-29 17:07:31.000000000 +0200 
+++ functions   2002-05-29 17:09:10.000000000 +0200 
@@ -15,6 +15,10 @@ 
 
 COLUMNS=$(stty size) 
 COLUMNS=${COLUMNS##* } 
+ 
+# on serial console stty reports 0 
+# change this to 80 here 
+if [ ""$COLUMNS"" == ""0"" ] 
+then 
+       COLUMNS=80 
+fi 
 COL=$[ $COLUMNS - 10 ] 
 WCOL=$[ $COLUMNS - 30 ] 
 SET_COL=""echo -en \\033[${COL}G"" 
============== /snip ==================== 
 
Thanks"	defect	closed	low		Book	CVS	minor	duplicate		
