From nobody@FreeBSD.ORG Tue Nov 23 13:55:31 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 67C6514A24; Tue, 23 Nov 1999 13:55:31 -0800 (PST)
Message-Id: <19991123215531.67C6514A24@hub.freebsd.org>
Date: Tue, 23 Nov 1999 13:55:31 -0800 (PST)
From: andyf@speednet.com.au
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: ``allscreens_flags'' in rc.conf not documented; produces unexpected results
X-Send-Pr-Version: www-1.0

>Number:         15066
>Category:       misc
>Synopsis:       ``allscreens_flags'' in rc.conf not documented; produces unexpected results
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sheldonh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 23 14:00:01 PST 1999
>Closed-Date:    Mon Mar 27 02:14:12 PST 2000
>Last-Modified:  Mon Mar 27 02:14:38 PST 2000
>Originator:     Andy Farkas
>Release:        3.3-STABLE, 4.0-CURRENT
>Organization:
Speednet Communications
>Environment:
>Description:
Firstly, ``allscreens_flags'' is not documented in rc.conf(5).

Secondly, with the following options set in rc.conf:

  font8x8="iso-8x8.fnt"
  allscreens_flags="-r black green 80x60 green black"

all ttyv's switch to 80x60 mode, but only ttyv0 gets the colour changed.

>How-To-Repeat:
Add the above mentioned ``font8x8'' and ``allscreens_flags'' to your
rc.conf file.  Reboot, then notice only ttyv0 is green.

>Fix:
/etc/rc.i386 looks like it attempts to do the right thing with regards
to applying vidcontrol to /dev/ttyv*, but I guess the redirection may
have something to do with it.


>Release-Note:
>Audit-Trail:

From: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
To: andyf@speednet.com.au
Cc: freebsd-gnats-submit@freebsd.org,
	yokota@zodiac.mech.utsunomiya-u.ac.jp
Subject: Re: misc/15066: ``allscreens_flags'' in rc.conf not documented; produces
	 unexpected results 
Date: Sun, 28 Nov 1999 16:57:41 +0900

 >>Number:         15066
 >>Category:       misc
 >>Synopsis:       ``allscreens_flags'' in rc.conf not documented; produces unex
 >pected results
 [...]
 >>Originator:     Andy Farkas
 >>Release:        3.3-STABLE, 4.0-CURRENT
 >>Organization:
 >Speednet Communications
 >>Environment:
 >>Description:
 >Firstly, ``allscreens_flags'' is not documented in rc.conf(5).
 >
 >Secondly, with the following options set in rc.conf:
 >
 >  font8x8="iso-8x8.fnt"
 >  allscreens_flags="-r black green 80x60 green black"
 >
 >all ttyv's switch to 80x60 mode, but only ttyv0 gets the colour changed.
 >
 >>How-To-Repeat:
 >Add the above mentioned ``font8x8'' and ``allscreens_flags'' to your
 >rc.conf file.  Reboot, then notice only ttyv0 is green.
 >
 >>Fix:
 >/etc/rc.i386 looks like it attempts to do the right thing with regards
 >to applying vidcontrol to /dev/ttyv*, but I guess the redirection may
 >have something to do with it.
 
 The following patch to /etc/rc.i386 should fix it.  
 
 Kazu
 
 <<The patch for -CURRENT>>
 
 Index: rc.i386
 ===================================================================
 RCS file: /src/CVS/src/etc/etc.i386/rc.i386,v
 retrieving revision 1.47
 diff -u -r1.47 rc.i386
 --- rc.i386	1999/09/15 11:17:59	1.47
 +++ rc.i386	1999/11/28 07:57:44
 @@ -204,7 +204,7 @@
  if [ -n "${allscreens_flags}" ]; then
  	echo -n ' allscreens'
  	for ttyv in /dev/ttyv*; do
 -		vidcontrol < ${ttyv} ${allscreens_flags}
 +		vidcontrol < ${ttyv} ${allscreens_flags} > ${ttyv} 2>&1
  	done
  fi
  
 
 
 
 <<The patch for -STABLE>>
 
 Index: rc.i386
 ===================================================================
 RCS file: /src/CVS/src/etc/etc.i386/rc.i386,v
 retrieving revision 1.37.2.5
 diff -u -r1.37.2.5 rc.i386
 --- rc.i386	1999/09/15 17:43:08	1.37.2.5
 +++ rc.i386	1999/11/28 07:59:28
 @@ -116,7 +116,7 @@
  	echo -n ' allscreens'
  	for ttyv in /dev/ttyv*
  	do
 -		vidcontrol <$ttyv ${allscreens_flags}
 +		vidcontrol <$ttyv ${allscreens_flags} >$ttyv 2>&1
  	done
  fi
  echo '.'
 
 
 
 
 

From: Andy Farkas <andyf@speednet.com.au>
To: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: misc/15066: ``allscreens_flags'' in rc.conf not documented;
 produces unexpected results 
Date: Sun, 28 Nov 1999 23:43:45 +1100 (EST)

 > The following patch to /etc/rc.i386 should fix it.  
 
 Yes, it does (tested on -current).  
 
 Thank you.
 
 > 
 > Kazu
 > 
 
 --
  
  :{ andyf@speednet.com.au
   
         Andy Farkas
     System Administrator
    Speednet Communications
  http://www.speednet.com.au/
   
 
 
 
State-Changed-From-To: open->suspended 
State-Changed-By: sheldonh 
State-Changed-When: Tue Dec 21 03:43:44 PST 1999 
State-Changed-Why:  
Fixed in CURRENT's rev 1.48 of rc.i386 and RELENG_3's rev 1.37.2.6 . 
I've documented the flag in CURRENT's rev 1.59 of rc.conf.5, but I'll 
wait a few days for objections before I MFC the change. 


Responsible-Changed-From-To: freebsd-bugs->sheldonh 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Tue Dec 21 03:43:44 PST 1999 
Responsible-Changed-Why:  
Reminder for me. :-) 
State-Changed-From-To: suspended->closed 
State-Changed-By: sheldonh 
State-Changed-When: Mon Mar 27 02:14:12 PST 2000 
State-Changed-Why:  
Merged onto the RELENG_3 branch.  Herendethelesson. 
>Unformatted:
