1999-11-21 17:44:43 +00:00
|
|
|
# Configuration file the USB daemon.
|
|
|
|
#
|
|
|
|
# See usbd.conf(5) for the description of the format of the file.
|
2000-01-20 14:56:37 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
1999-11-21 17:44:43 +00:00
|
|
|
|
2000-01-10 22:34:36 +00:00
|
|
|
# Firmware download into the ActiveWire board. After the firmware download is
|
2000-10-16 16:38:04 +00:00
|
|
|
# done the device detaches and reappears as something new and shiny automatically.
|
1999-11-21 17:44:43 +00:00
|
|
|
#
|
|
|
|
device "ActiveWire board, firmware download"
|
2000-01-10 22:34:36 +00:00
|
|
|
vendor 0x0854
|
|
|
|
product 0x0100
|
|
|
|
release 0x0000
|
|
|
|
attach "/usr/local/bin/ezdownload -f /usr/local/share/usb/firmware/0854.0100.0_01.hex ${DEVNAME}"
|
|
|
|
|
|
|
|
# Firmware download for Entrega Serial DB25 adapter.
|
|
|
|
#
|
|
|
|
device "Entrega Serial with UART"
|
|
|
|
product 0x8001
|
|
|
|
vendor 0x1645
|
|
|
|
release 0x0101
|
|
|
|
attach "if ! kldstat -n usio > /dev/null 2>&1 ; then kldload usio; fi"
|
|
|
|
attach "/usr/sbin/ezdownload -v -f /usr/share/usb/firmware/1645.8001.0101 /dev/${DEVNAME}"
|
|
|
|
|
2000-10-16 16:38:04 +00:00
|
|
|
# The entry below starts and stops dhclient when an ethernet device is inserted
|
|
|
|
# Caveat: It does not support multiple interfaces (but neither does pccardd,
|
|
|
|
# it shouldn't be too big a deal :-)
|
|
|
|
#
|
2000-01-10 22:34:36 +00:00
|
|
|
device "USB ethernet"
|
2003-05-03 10:16:56 +00:00
|
|
|
devname "[ackr]ue[0-9]+"
|
2000-10-20 00:42:05 +00:00
|
|
|
attach "/etc/pccard_ether ${DEVNAME} start"
|
|
|
|
detach "/etc/pccard_ether ${DEVNAME} stop"
|
1999-11-21 17:44:43 +00:00
|
|
|
|
2002-03-08 14:46:13 +00:00
|
|
|
# This entry starts the ColdSync tool in daemon mode. Make sure you have an up
|
|
|
|
# to date /usr/local/etc/palms. We override the 'listen' settings for port and
|
|
|
|
# type in /usr/local/etc/coldsync.conf.
|
|
|
|
device "Handspring Visor"
|
|
|
|
devname "ugen[0-9]+"
|
|
|
|
vendor 0x082d
|
|
|
|
product 0x0100
|
|
|
|
release 0x0100
|
|
|
|
attach "/usr/local/bin/coldsync -md -p /dev/${DEVNAME} -t usb"
|
|
|
|
|
2000-10-16 16:38:04 +00:00
|
|
|
# The entry below starts moused when a mouse is plugged in. Moused
|
|
|
|
# stops automatically (actually it bombs :) when the device disappears.
|
1999-11-21 17:44:43 +00:00
|
|
|
#
|
1999-11-28 21:27:31 +00:00
|
|
|
device "Mouse"
|
2000-01-10 22:34:36 +00:00
|
|
|
devname "ums[0-9]+"
|
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
2004-11-01 18:05:41 +00:00
|
|
|
attach "/etc/rc.d/moused start ${DEVNAME}"
|
1999-11-21 17:44:43 +00:00
|
|
|
|
|
|
|
# The fallthrough entry: Nothing is specified, nothing is done. And it isn't
|
|
|
|
# necessary at all :-). Just for pretty printing in debugging mode.
|
|
|
|
#
|
|
|
|
device "USB device"
|