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 |
|
|
match "system" "IFNET";
|
18 |
|
|
match "type" "LINK_UP";
|
19 |
|
|
match "subsystem" "carp";
|
20 |
177f8e32
|
Scott Ullrich
|
action "/etc/rc.carpmaster $subsystem";
|
21 |
59c0a670
|
jim-p
|
};
|
22 |
|
|
|
23 |
|
|
notify 100 {
|
24 |
|
|
match "system" "IFNET";
|
25 |
|
|
match "type" "LINK_DOWN";
|
26 |
|
|
match "subsystem" "carp";
|
27 |
177f8e32
|
Scott Ullrich
|
action "/etc/rc.carpbackup $subsystem";
|
28 |
59c0a670
|
jim-p
|
};
|
29 |
|
|
|
30 |
7fb94513
|
Scott Ullrich
|
# When a USB keyboard arrives, attach it as the console keyboard.
|
31 |
|
|
attach 100 {
|
32 |
|
|
device-name "ukbd0";
|
33 |
7a221543
|
Scott Ullrich
|
action "kbdcontrol -k /dev/ukbd0 < /dev/console";
|
34 |
7fb94513
|
Scott Ullrich
|
};
|
35 |
36f66286
|
Scott Ullrich
|
|
36 |
7fb94513
|
Scott Ullrich
|
detach 100 {
|
37 |
|
|
device-name "ukbd0";
|
38 |
|
|
action "kbdcontrol -k /dev/kbd0 < /dev/console";
|
39 |
|
|
};
|
40 |
|
|
|
41 |
36f66286
|
Scott Ullrich
|
#
|
42 |
|
|
# Try to start dhclient on Ethernet like interfaces when the link comes
|
43 |
|
|
# up. Only devices that are configured to support DHCP will actually
|
44 |
|
|
# run it. No link down rule exists because dhclient automaticly exits
|
45 |
|
|
# when the link goes down.
|
46 |
|
|
#
|
47 |
|
|
notify 0 {
|
48 |
|
|
match "system" "IFNET";
|
49 |
|
|
match "type" "LINK_UP";
|
50 |
|
|
media-type "ethernet";
|
51 |
0ae6daf8
|
Ermal
|
action "/usr/local/sbin/pfSctl -c 'interface linkup start $subsystem'";
|
52 |
36f66286
|
Scott Ullrich
|
};
|
53 |
|
|
|
54 |
6c9e8647
|
Ermal
|
notify 0 {
|
55 |
|
|
match "system" "IFNET";
|
56 |
|
|
match "type" "LINK_DOWN";
|
57 |
|
|
media-type "ethernet";
|
58 |
|
|
action "/usr/local/sbin/pfSctl -c 'interface linkup stop $subsystem'";
|
59 |
|
|
};
|
60 |
|
|
|
61 |
7fb94513
|
Scott Ullrich
|
# Notify all users before beginning emergency shutdown when we get
|
62 |
|
|
# a _CRT or _HOT thermal event and we're going to power down the system
|
63 |
|
|
# very soon.
|
64 |
|
|
notify 10 {
|
65 |
|
|
match "system" "ACPI";
|
66 |
|
|
match "subsystem" "Thermal";
|
67 |
|
|
match "notify" "0xcc";
|
68 |
|
|
action "logger -p kern.emerg 'WARNING: system temperature too high, shutting down soon!'";
|
69 |
|
|
};
|