Date: Fri, 25 Sep 1998 05:30:01 -0700 (PDT) From: axl@iafrica.com To: freebsd-bugs@FreeBSD.ORG Subject: Re: i386/7695: rc.i386 only enables mouse support for ttyv0 Message-ID: <199809251230.FAA23941@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/7695; it has been noted by GNATS. From: axl@iafrica.com To: freebsd-gnats-submit@freebsd.org, axl@iafrica.com Cc: Subject: Re: i386/7695: rc.i386 only enables mouse support for ttyv0 Date: Fri, 25 Sep 1998 14:09:10 +0200 > + for i in `grep "^ttyv.*getty Pc.*\bon\b" /etc/ttys|cut -f 1` ; do > + vidcontrol </dev/$i -m on > + done The following patch is functionally the same, but is more efficient in that it uses sed instead of grep&cut. Sheldon. Index: rc.i386 =================================================================== RCS file: /home/ncvs/src/etc/etc.i386/rc.i386,v retrieving revision 1.18.2.10 diff -u -d -r1.18.2.10 rc.i386 --- rc.i386 1998/03/07 09:06:19 1.18.2.10 +++ rc.i386 1998/09/25 12:05:26 @@ -102,7 +102,9 @@ if [ "X${moused_enable}" = X"YES" ] ; then echo -n ' moused' moused ${moused_flags} -p ${moused_port} -t ${moused_type} - vidcontrol <${viddev} -m on + for i in `sed -ne 's/^\(ttyv[0-9ab]\).*getty[\t ]*Pc[^\t ]*[\t ]*on[\t ]*.*$/\1/p' < /etc/ttys ` ; do + vidcontrol -m on </dev/$i + done fi echo '.' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809251230.FAA23941>