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. 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. How-To-Repeat: Add the above mentioned ``font8x8'' and ``allscreens_flags'' to your rc.conf file. Reboot, then notice only ttyv0 is green.
>>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 '.'
> 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 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 Reminder for me. :-)
State Changed From-To: suspended->closed Merged onto the RELENG_3 branch. Herendethelesson.