Opened 22 years ago

Closed 22 years ago

Last modified 22 years ago

#367 closed defect (duplicate)

lfs-bootscripts 1.9, wrong column count over serial connection

Reported by: list@… Owned by: lfs-book@…
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

Change History (1)

comment:1 by gerard@…, 22 years ago

Resolution: duplicate
Status: newclosed

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 *

Note: See TracTickets for help on using tickets.