1 |
7769e6cf
|
Scott Ullrich
|
# $Id$
|
2 |
7fb94513
|
Scott Ullrich
|
# $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 |
48906a09
|
Scott Ullrich
|
directory "/usr/local/etc/devd";
|
7 |
7fb94513
|
Scott Ullrich
|
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 |
59c0a670
|
jim-p
|
# CARP notify hooks. This will call carpup/carpdown with the
|
15 |
|
|
# interface (carp0, carp1) as the first parameter.
|
16 |
|
|
notify 100 {
|
17 |
77411fa7
|
Ermal
|
match "system" "CARP";
|
18 |
|
|
match "type" "MASTER";
|
19 |
1c3d2cd3
|
Ermal
|
action "/usr/local/sbin/pfSctl -c 'interface carpmaster $subsystem'";
|
20 |
59c0a670
|
jim-p
|
};
|
21 |
|
|
|
22 |
|
|
notify 100 {
|
23 |
77411fa7
|
Ermal
|
match "system" "CARP";
|
24 |
|
|
match "type" "BACKUP";
|
25 |
1c3d2cd3
|
Ermal
|
action "/usr/local/sbin/pfSctl -c 'interface carpbackup $subsystem'";
|
26 |
59c0a670
|
jim-p
|
};
|
27 |
|
|
|
28 |
7fb94513
|
Scott Ullrich
|
# When a USB keyboard arrives, attach it as the console keyboard.
|
29 |
|
|
attach 100 {
|
30 |
|
|
device-name "ukbd0";
|
31 |
63dfc7ef
|
Scott Ullrich
|
action "kbdcontrol -k /dev/ukbd0 < /dev/console 2>/dev/null";
|
32 |
7fb94513
|
Scott Ullrich
|
};
|
33 |
36f66286
|
Scott Ullrich
|
|
34 |
7fb94513
|
Scott Ullrich
|
detach 100 {
|
35 |
|
|
device-name "ukbd0";
|
36 |
63dfc7ef
|
Scott Ullrich
|
action "kbdcontrol -k /dev/kbd0 < /dev/console 2>/dev/null";
|
37 |
7fb94513
|
Scott Ullrich
|
};
|
38 |
|
|
|
39 |
36f66286
|
Scott Ullrich
|
#
|
40 |
27dfd848
|
Ermal
|
# Signal upper levels that an event happened on ethernet class interface
|
41 |
36f66286
|
Scott Ullrich
|
#
|
42 |
|
|
notify 0 {
|
43 |
|
|
match "system" "IFNET";
|
44 |
|
|
match "type" "LINK_UP";
|
45 |
|
|
media-type "ethernet";
|
46 |
0ae6daf8
|
Ermal
|
action "/usr/local/sbin/pfSctl -c 'interface linkup start $subsystem'";
|
47 |
36f66286
|
Scott Ullrich
|
};
|
48 |
|
|
|
49 |
6c9e8647
|
Ermal
|
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 |
1de3cd87
|
smos
|
#
|
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 |
909b0a91
|
smos
|
match "subsystem" "[a-z]+[0-9]+_wlan[0-9]+";
|
63 |
1de3cd87
|
smos
|
action "/usr/local/sbin/pfSctl -c 'interface linkup start $subsystem'";
|
64 |
|
|
};
|
65 |
|
|
|
66 |
7fb94513
|
Scott Ullrich
|
# 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 |
|
|
};
|