#367 closed defect (duplicate)
lfs-bootscripts 1.9, wrong column count over serial connection
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | |
Component: | Book | Version: | CVS |
Severity: | minor | Keywords: | |
Cc: |
Description
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
Adding to bug #325 which deals with changes to be made to the upcoming lfs-bootscripts-1.10
* This bug has been marked as a duplicate of 325 *