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
|
#notify 0 {
|
15
|
# match "type" "LINK_DOWN";
|
16
|
# media-type "ethernet";
|
17
|
# action "/bin/echo -n '$subsystem stop ' >>/tmp/rc.linkup";
|
18
|
#};
|
19
|
|
20
|
# When a USB keyboard arrives, attach it as the console keyboard.
|
21
|
attach 100 {
|
22
|
device-name "ukbd0";
|
23
|
action "kbdcontrol -k /dev/ukbd0 < /dev/console";
|
24
|
};
|
25
|
|
26
|
detach 100 {
|
27
|
device-name "ukbd0";
|
28
|
action "kbdcontrol -k /dev/kbd0 < /dev/console";
|
29
|
};
|
30
|
|
31
|
#
|
32
|
# Try to start dhclient on Ethernet like interfaces when the link comes
|
33
|
# up. Only devices that are configured to support DHCP will actually
|
34
|
# run it. No link down rule exists because dhclient automaticly exits
|
35
|
# when the link goes down.
|
36
|
#
|
37
|
notify 0 {
|
38
|
match "system" "IFNET";
|
39
|
match "type" "LINK_UP";
|
40
|
media-type "ethernet";
|
41
|
action "/bin/echo -n '$subsystem start ' >>/tmp/rc.linkup";
|
42
|
};
|
43
|
|
44
|
# Notify all users before beginning emergency shutdown when we get
|
45
|
# a _CRT or _HOT thermal event and we're going to power down the system
|
46
|
# very soon.
|
47
|
notify 10 {
|
48
|
match "system" "ACPI";
|
49
|
match "subsystem" "Thermal";
|
50
|
match "notify" "0xcc";
|
51
|
action "logger -p kern.emerg 'WARNING: system temperature too high, shutting down soon!'";
|
52
|
};
|