1
|
# $Id$
|
2
|
# $FreeBSD: src/etc/devd.conf,v 1.26.2.1 2005/09/03 22:49:22 sam Exp $
|
3
|
|
4
|
options {
|
5
|
directory "/etc/devd";
|
6
|
directory "/usr/local/etc/devd";
|
7
|
pid-file "/var/run/devd.pid";
|
8
|
set scsi-controller-regex
|
9
|
"(aac|adv|adw|aha|ahb|ahc|ahd|aic|amd|amr|asr|bt|ciss|ct|dpt|\
|
10
|
esp|ida|iir|ips|isp|mlx|mly|mpt|ncr|ncv|nsp|stg|sym|trm|wds)\
|
11
|
[0-9]+";
|
12
|
};
|
13
|
|
14
|
# CARP notify hooks. This will call carpup/carpdown with the
|
15
|
# interface (carp0, carp1) as the first parameter.
|
16
|
notify 100 {
|
17
|
match "system" "CARP";
|
18
|
match "type" "MASTER";
|
19
|
action "/usr/local/sbin/pfSctl -c 'interface carpmaster $subsystem'";
|
20
|
};
|
21
|
|
22
|
notify 100 {
|
23
|
match "system" "CARP";
|
24
|
match "type" "BACKUP";
|
25
|
action "/usr/local/sbin/pfSctl -c 'interface carpbackup $subsystem'";
|
26
|
};
|
27
|
|
28
|
# When a USB keyboard arrives, attach it as the console keyboard.
|
29
|
attach 100 {
|
30
|
device-name "ukbd0";
|
31
|
action "kbdcontrol -k /dev/ukbd0 < /dev/console 2>/dev/null";
|
32
|
};
|
33
|
|
34
|
detach 100 {
|
35
|
device-name "ukbd0";
|
36
|
action "kbdcontrol -k /dev/kbd0 < /dev/console 2>/dev/null";
|
37
|
};
|
38
|
|
39
|
#
|
40
|
# Signal upper levels that an event happened on ethernet class interface
|
41
|
#
|
42
|
notify 0 {
|
43
|
match "system" "IFNET";
|
44
|
match "type" "LINK_UP";
|
45
|
media-type "ethernet";
|
46
|
action "/usr/local/sbin/pfSctl -c 'interface linkup start $subsystem'";
|
47
|
};
|
48
|
|
49
|
notify 0 {
|
50
|
match "system" "IFNET";
|
51
|
match "type" "LINK_DOWN";
|
52
|
media-type "ethernet";
|
53
|
action "/usr/local/sbin/pfSctl -c 'interface linkup stop $subsystem'";
|
54
|
};
|
55
|
|
56
|
#
|
57
|
# Signal upper levels that an event happened on 802.11 class interface
|
58
|
#
|
59
|
notify 0 {
|
60
|
match "system" "IFNET";
|
61
|
match "type" "LINK_UP";
|
62
|
match "subsystem" "[a-z]+[0-9]+_wlan[0-9]+";
|
63
|
action "/usr/local/sbin/pfSctl -c 'interface linkup start $subsystem'";
|
64
|
};
|
65
|
|
66
|
# Notify all users before beginning emergency shutdown when we get
|
67
|
# a _CRT or _HOT thermal event and we're going to power down the system
|
68
|
# very soon.
|
69
|
notify 10 {
|
70
|
match "system" "ACPI";
|
71
|
match "subsystem" "Thermal";
|
72
|
match "notify" "0xcc";
|
73
|
action "logger -p kern.emerg 'WARNING: system temperature too high, shutting down soon!'";
|
74
|
};
|