diff options
author | mtm <mtm@FreeBSD.org> | 2004-11-01 18:05:41 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2004-11-01 18:05:41 +0000 |
commit | 94c6d19c80ab9f3b68faee1c4679f1bb07a91e58 (patch) | |
tree | 1f980b3b84807a4c4cbf80e41a031cc40ab2fac8 /etc/usbd.conf | |
parent | 9464f7f21640bcee55e4e2ceeeb6124ad065e51c (diff) | |
download | FreeBSD-src-94c6d19c80ab9f3b68faee1c4679f1bb07a91e58.zip FreeBSD-src-94c6d19c80ab9f3b68faee1c4679f1bb07a91e58.tar.gz |
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
Diffstat (limited to 'etc/usbd.conf')
-rw-r--r-- | etc/usbd.conf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/usbd.conf b/etc/usbd.conf index 03c3f4f..6c79348 100644 --- a/etc/usbd.conf +++ b/etc/usbd.conf @@ -46,7 +46,7 @@ device "Handspring Visor" # device "Mouse" devname "ums[0-9]+" - attach "/usr/sbin/moused -p /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid ; /usr/sbin/vidcontrol -m on" + attach "/etc/rc.d/moused start ${DEVNAME}" # The fallthrough entry: Nothing is specified, nothing is done. And it isn't # necessary at all :-). Just for pretty printing in debugging mode. |