summaryrefslogtreecommitdiffstats
path: root/etc/devd.conf
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2010-04-29 22:40:12 +0000
committerthompsa <thompsa@FreeBSD.org>2010-04-29 22:40:12 +0000
commitc4a3a58edda8a2549c49bafcd5cce978a821be55 (patch)
tree657e96872a4e05d4d5579a6b2949a92c25340820 /etc/devd.conf
parentfa6043268584ee2a93fdcb3876b59ccb2609ee2e (diff)
downloadFreeBSD-src-c4a3a58edda8a2549c49bafcd5cce978a821be55.zip
FreeBSD-src-c4a3a58edda8a2549c49bafcd5cce978a821be55.tar.gz
MFC r207020, r207027, r207072.
Change usb devd events from fake attach to a notify. The ugen device is not a proper device_t so it faked the devctl event to appear like one, this is now a notify which allows more information to be passed. We notify for both the device attach/detach and for each usb interface. A devd rule can now match on the interface properties, including composite devices which may have a uvideo interface and also usound and possibly uhid too. An example to match a umass device with a scsi subclass and BBB protocol would be notify 100 { match "system" "USB"; match "subsystem" "INTERFACE"; match "type" "ATTACH"; match "intclass" "0x08"; match "intsubclass" "0x06"; match "intprotocol" "0x50"; action ... }; The old attach devctl event has been retained for the moment to make merging to 8.1 easier. This was never compatible with 7.x or earlier due to the ugen regex change needed. Document the new USB notification types.
Diffstat (limited to 'etc/devd.conf')
-rw-r--r--etc/devd.conf14
1 files changed, 8 insertions, 6 deletions
diff --git a/etc/devd.conf b/etc/devd.conf
index 696ac7c..8827e3b 100644
--- a/etc/devd.conf
+++ b/etc/devd.conf
@@ -138,12 +138,14 @@ attach 100 {
# 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.
-attach 100 {
- device-name "ugen[0-9]+";
- match "vendor" "0x082d";
- match "product" "0x0100";
- match "release" "0x0100";
- action "/usr/local/bin/coldsync -md -p /dev/$device-name -t usb";
+notify 100 {
+ match "system" "USB";
+ match "subsystem" "DEVICE";
+ match "type" "ATTACH";
+ match "vendor" "0x082d";
+ match "product" "0x0100";
+ match "release" "0x0100";
+ action "/usr/local/bin/coldsync -md -p /dev/$cdev -t usb";
};
#
OpenPOWER on IntegriCloud