aboutsummaryrefslogtreecommitdiff
path: root/etc/defaults/rc.conf
diff options
context:
space:
mode:
authorMike Makonnen <mtm@FreeBSD.org>2004-11-01 18:05:41 +0000
committerMike Makonnen <mtm@FreeBSD.org>2004-11-01 18:05:41 +0000
commit86bade27519f9608a2c92564924d55fc89a3d47e (patch)
tree1f980b3b84807a4c4cbf80e41a031cc40ab2fac8 /etc/defaults/rc.conf
parent220df35f05a78a5e60cb9b5bfb6bf6b8cb19dcba (diff)
downloadsrc-86bade27519f9608a2c92564924d55fc89a3d47e.tar.gz
src-86bade27519f9608a2c92564924d55fc89a3d47e.zip
Do a better job of supporting more than one mouse device
on the system. To start/stop/check on a specific device give the device name as the second argument to the script: # /etc/rc.d/moused start ums0 To use different rc.conf(5) knobs with different mice use the device name as part of the knob. For example, if the mouse device is ums0, then: moused_ums0_enable=yes moused_ums0_flags="-z 4" moused_ums0_port="/dev/ums0" Starting rc.d/moused without the device argument will use the standard moused_* flags. So, this commit should not disrupt or change current usage. To preserve current behaviour with respect to usb mice, which appear automatically when inserted, there is a new knob, moused_nondefault_enable, which will treat any devices without rc.conf knobs as enabled. To minimize knobs in /etc/rc.conf, the device file and pid file are auto-computed, so that in the typical case for a usb mouse you don't need to add anything extra in /etc/rc.conf to get it working. Additionally, this updates /etc/usbd.conf to use the rc.d/moused script so people don't have to modify it to configure their usb mouse anymore. MFC after: 1 month
Notes
Notes: svn path=/head/; revision=137112
Diffstat (limited to 'etc/defaults/rc.conf')
-rw-r--r--etc/defaults/rc.conf2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index 0916c3498a0d..417b665812a1 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -362,6 +362,8 @@ font8x14="NO" # font 8x14 from /usr/share/syscons/fonts/* (or NO).
font8x8="NO" # font 8x8 from /usr/share/syscons/fonts/* (or NO).
blanktime="300" # blank time (in seconds) or "NO" to turn it off.
saver="NO" # screen saver: Uses /boot/kernel/${saver}_saver.ko
+moused_nondefault_enable="YES" # Treat non-default mice as enabled unless
+ # specifically overriden in rc.conf(5).
moused_enable="NO" # Run the mouse daemon.
moused_type="auto" # See man page for rc.conf(5) for available settings.
moused_port="/dev/psm0" # Set to your mouse port.