diff options
author | ache <ache@FreeBSD.org> | 1998-04-02 15:17:52 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1998-04-02 15:17:52 +0000 |
commit | 6540990382fa2dab9dc47234a52be4cec97207ea (patch) | |
tree | b6448b1f8bb7c465df5c2a07714fa2a4ece394c9 /etc | |
parent | 0835cba6a56c82345a20fcb979716576408cfa1f (diff) | |
download | FreeBSD-src-6540990382fa2dab9dc47234a52be4cec97207ea.zip FreeBSD-src-6540990382fa2dab9dc47234a52be4cec97207ea.tar.gz |
Implement vidcontrol knob which allows to set passed flags/modes
for all virtual screens (via for loop)
Diffstat (limited to 'etc')
-rw-r--r-- | etc/etc.amd64/rc.amd64 | 11 | ||||
-rw-r--r-- | etc/etc.i386/rc.i386 | 11 | ||||
-rw-r--r-- | etc/rc.conf | 3 |
3 files changed, 22 insertions, 3 deletions
diff --git a/etc/etc.amd64/rc.amd64 b/etc/etc.amd64/rc.amd64 index d4f2a47..6e463b1 100644 --- a/etc/etc.amd64/rc.amd64 +++ b/etc/etc.amd64/rc.amd64 @@ -1,6 +1,6 @@ #!/bin/sh - # -# $Id: rc.i386,v 1.31 1997/09/14 12:16:36 jkh Exp $ +# $Id: rc.i386,v 1.32 1998/03/07 09:02:08 jkh Exp $ # Do i386 specific processing # @@ -104,6 +104,15 @@ if [ "X${moused_enable}" = X"YES" ] ; then moused ${moused_flags} -p ${moused_port} -t ${moused_type} vidcontrol <${viddev} -m on fi + +# set this mode for all screens +if [ "X${allscreens_mode}" != X -a "X${allscreens_mode}" != X"NO" ] ; then + echo -n ' allscreens' + for ttyv in /dev/ttyv* + do + vidcontrol <$ttyv ${allscreens_mode} + done +fi echo '.' # interrupts for /dev/random device diff --git a/etc/etc.i386/rc.i386 b/etc/etc.i386/rc.i386 index d4f2a47..6e463b1 100644 --- a/etc/etc.i386/rc.i386 +++ b/etc/etc.i386/rc.i386 @@ -1,6 +1,6 @@ #!/bin/sh - # -# $Id: rc.i386,v 1.31 1997/09/14 12:16:36 jkh Exp $ +# $Id: rc.i386,v 1.32 1998/03/07 09:02:08 jkh Exp $ # Do i386 specific processing # @@ -104,6 +104,15 @@ if [ "X${moused_enable}" = X"YES" ] ; then moused ${moused_flags} -p ${moused_port} -t ${moused_type} vidcontrol <${viddev} -m on fi + +# set this mode for all screens +if [ "X${allscreens_mode}" != X -a "X${allscreens_mode}" != X"NO" ] ; then + echo -n ' allscreens' + for ttyv in /dev/ttyv* + do + vidcontrol <$ttyv ${allscreens_mode} + done +fi echo '.' # interrupts for /dev/random device diff --git a/etc/rc.conf b/etc/rc.conf index 5c68b85..2b65ef3 100644 --- a/etc/rc.conf +++ b/etc/rc.conf @@ -6,7 +6,7 @@ # # All arguments must be in double or single quotes. # -# $Id: rc.conf,v 1.40 1998/03/07 09:01:59 jkh Exp $ +# $Id: rc.conf,v 1.41 1998/03/09 08:50:27 jkh Exp $ ############################################################## ### Important initial Boot-time options ##################### @@ -124,6 +124,7 @@ moused_enable="NO" # Run the mouse daemon. moused_type="auto" # See man page for rc.conf(5) for available settings. moused_port="/dev/cuaa0" # Set to your mouse port. moused_flags="" # Any additional flags to moused. +allscreens_mode="NO" # Set this vidcontrol flags for all virtual screens ############################################################## |