devd.conf (147088) | devd.conf (148471) |
---|---|
1# $FreeBSD: head/etc/devd.conf 147088 2005-06-07 04:49:12Z brooks $ | 1# $FreeBSD: head/etc/devd.conf 148471 2005-07-28 03:51:54Z imp $ |
2# 3# Refer to devd.conf(5) and devd(8) man pages for the details on how to 4# run and configure devd. 5# 6 7# NB: All regular expressions have an implicit ^$ around them. 8# NB: device-name is shorthand for 'match device-name' 9 10options { 11 # Each directory directive adds a directory the list of directories 12 # that we scan for files. Files are read-in in the order that they 13 # are returned from readdir(3). The rule-sets are combined to 14 # create a DFA that's used to match events to actions. 15 directory "/etc/devd"; 16 directory "/usr/local/etc/devd"; 17 pid-file "/var/run/devd.pid"; 18 19 # Setup some shorthand for regex that we use later in the file. | 2# 3# Refer to devd.conf(5) and devd(8) man pages for the details on how to 4# run and configure devd. 5# 6 7# NB: All regular expressions have an implicit ^$ around them. 8# NB: device-name is shorthand for 'match device-name' 9 10options { 11 # Each directory directive adds a directory the list of directories 12 # that we scan for files. Files are read-in in the order that they 13 # are returned from readdir(3). The rule-sets are combined to 14 # create a DFA that's used to match events to actions. 15 directory "/etc/devd"; 16 directory "/usr/local/etc/devd"; 17 pid-file "/var/run/devd.pid"; 18 19 # Setup some shorthand for regex that we use later in the file. |
20 #XXX Yes, these are gross -- imp |
|
20 set ethernet-nic-regex | 21 set ethernet-nic-regex |
21 "(an|ar|ath|aue|awi|axe|bfe|bge|cdce|cm|cnw|cs|cue|dc|de|ed|el|em|\ 22 ep|ex|fe|fxp|gem|hme|ie|kue|lge|lnc|my|nge|pcn|ray|re|rl|rue|\ 23 sf|sis|sk|sn|snc|ste|ti|tl|tx|txp|udav|vge|vr|vx|wb|wi|xe|xl)\ | 22 "(an|ar|ath|aue|awi|axe|bfe|bge|cdce|cm|cnw|cs|cue|dc|de|ed|el|\ 23 em|ep|ex|fe|fxp|gem|hme|ie|ipw|iwi|kue|lge|lnc|my|nge|pcn|ral|\ 24 ray|re|rl|rue|sf|sis|sk|sn|snc|ste|ti|tl|tx|txp|udav|ural|vge|\ 25 vr|vx|wb|wi|xe|xl)\ |
24 [0-9]+"; 25 set scsi-controller-regex 26 "(aac|adv|adw|aha|ahb|ahc|ahd|aic|amd|amr|asr|bt|ciss|ct|dpt|\ 27 esp|ida|iir|ips|isp|mlx|mly|mpt|ncr|ncv|nsp|stg|sym|trm|wds)\ 28 [0-9]+"; 29}; 30 31# Note that the attach/detach with the highest value wins, so that one can --- 51 unchanged lines hidden (view full) --- 83# The entry below starts moused when a mouse is plugged in. Moused 84# stops automatically (actually it bombs :) when the device disappears. 85attach 100 { 86 device-name "ums[0-9]+"; 87 action "/etc/rc.d/moused start $device-name"; 88}; 89 90# | 26 [0-9]+"; 27 set scsi-controller-regex 28 "(aac|adv|adw|aha|ahb|ahc|ahd|aic|amd|amr|asr|bt|ciss|ct|dpt|\ 29 esp|ida|iir|ips|isp|mlx|mly|mpt|ncr|ncv|nsp|stg|sym|trm|wds)\ 30 [0-9]+"; 31}; 32 33# Note that the attach/detach with the highest value wins, so that one can --- 51 unchanged lines hidden (view full) --- 85# The entry below starts moused when a mouse is plugged in. Moused 86# stops automatically (actually it bombs :) when the device disappears. 87attach 100 { 88 device-name "ums[0-9]+"; 89 action "/etc/rc.d/moused start $device-name"; 90}; 91 92# |
91# Rescan scsi device-names on attach, but not detach. | 93# Rescan scsi device-names on attach, but not detach. However, it is 94# disabled by default due to reports of problems. |
92# 93attach 0 { 94 device-name "$scsi-controller-regex"; 95// action "camcontrol rescan all"; 96}; 97 98# Don't even try to second guess what to do about drivers that don't 99# match here. Instead, pass it off to syslog. Commented out for the --- 72 unchanged lines hidden --- | 95# 96attach 0 { 97 device-name "$scsi-controller-regex"; 98// action "camcontrol rescan all"; 99}; 100 101# Don't even try to second guess what to do about drivers that don't 102# match here. Instead, pass it off to syslog. Commented out for the --- 72 unchanged lines hidden --- |