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
|
# Handle ethernet linkup and linkdown
|
15
|
notify 0 {
|
16
|
match "type" "LINK_UP";
|
17
|
media-type "ethernet";
|
18
|
action "/bin/echo -n '$subsystem start ' >>/tmp/rc.linkup";
|
19
|
};
|
20
|
notify 0 {
|
21
|
match "type" "LINK_DOWN";
|
22
|
media-type "ethernet";
|
23
|
action "/bin/echo -n '$subsystem stop ' >>/tmp/rc.linkup";
|
24
|
};
|
25
|
|
26
|
# When a USB keyboard arrives, attach it as the console keyboard.
|
27
|
attach 100 {
|
28
|
device-name "ukbd0";
|
29
|
action "kbdcontrol -k /dev/ukbd0 < /dev/console";
|
30
|
};
|
31
|
detach 100 {
|
32
|
device-name "ukbd0";
|
33
|
action "kbdcontrol -k /dev/kbd0 < /dev/console";
|
34
|
};
|
35
|
|
36
|
# Notify all users before beginning emergency shutdown when we get
|
37
|
# a _CRT or _HOT thermal event and we're going to power down the system
|
38
|
# very soon.
|
39
|
notify 10 {
|
40
|
match "system" "ACPI";
|
41
|
match "subsystem" "Thermal";
|
42
|
match "notify" "0xcc";
|
43
|
action "logger -p kern.emerg 'WARNING: system temperature too high, shutting down soon!'";
|
44
|
};
|