Add a few highlevel comments in main, describing what variables should be set.
[dragonfly.git] / etc / usbd.conf
CommitLineData
984263bc
MD
1# Configuration file the USB daemon.
2#
3# See usbd.conf(5) for the description of the format of the file.
4#
5# $FreeBSD: src/etc/usbd.conf,v 1.5.2.3 2002/11/04 08:05:44 dougb Exp $
1de703da 6# $DragonFly: src/etc/usbd.conf,v 1.2 2003/06/17 04:24:45 dillon Exp $
984263bc
MD
7
8# Firmware download into the ActiveWire board. After the firmware download is
9# done the device detaches and reappears as something new and shiny automatically.
10#
11device "ActiveWire board, firmware download"
12 vendor 0x0854
13 product 0x0100
14 release 0x0000
15 attach "/usr/local/bin/ezdownload -f /usr/local/share/usb/firmware/0854.0100.0_01.hex ${DEVNAME}"
16
17# Firmware download for Entrega Serial DB25 adapter.
18#
19device "Entrega Serial with UART"
20 product 0x8001
21 vendor 0x1645
22 release 0x0101
23 attach "if ! kldstat -n usio > /dev/null 2>&1 ; then kldload usio; fi"
24 attach "/usr/sbin/ezdownload -v -f /usr/share/usb/firmware/1645.8001.0101 /dev/${DEVNAME}"
25
26# The entry below starts and stops dhclient when an ethernet device is inserted
27# Caveat: It does not support multiple interfaces (but neither does pccardd,
28# it shouldn't be too big a deal :-)
29#
30device "USB ethernet"
31 devname "[ack]ue[0-9]+"
32 attach "/etc/pccard_ether ${DEVNAME} start"
33 detach "/etc/pccard_ether ${DEVNAME} stop"
34
35# This entry starts the ColdSync tool in daemon mode. Make sure you have an up
36# to date /usr/local/etc/palms. We override the 'listen' settings for port and
37# type in /usr/local/etc/coldsync.conf.
38device "Handspring Visor"
39 devname "ugen[0-9]+"
40 vendor 0x082d
41 product 0x0100
42 release 0x0100
43 attach "/usr/local/bin/coldsync -md -p /dev/${DEVNAME} -t usb"
44
45# The entry below starts moused when a mouse is plugged in. Moused
46# stops automatically (actually it bombs :) when the device disappears.
47#
48device "Mouse"
49 devname "ums[0-9]+"
50 attach "/usr/sbin/moused -p /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid ; /usr/sbin/vidcontrol -m on"
51
52# The fallthrough entry: Nothing is specified, nothing is done. And it isn't
53# necessary at all :-). Just for pretty printing in debugging mode.
54#
55device "USB device"