Project

General

Profile

Download (1.95 KB) Statistics
| Branch: | Tag: | Revision:
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"          "IFNET";
18
    match "type"            "LINK_UP";
19
    match "subsystem"		"carp";
20
    action "/etc/rc.carpmaster $subsystem";
21
};
22

    
23
notify 100 {
24
    match "system"          "IFNET";
25
    match "type"            "LINK_DOWN";
26
    match "subsystem"		"carp";
27
    action "/etc/rc.carpbackup $subsystem";
28
};
29

    
30
#notify 0 {
31
#    match "type"            "LINK_DOWN";
32
#	media-type              "ethernet";
33
#    action "/bin/echo -n '$subsystem stop ' >>/tmp/rc.linkup";
34
#};
35

    
36
# When a USB keyboard arrives, attach it as the console keyboard.
37
attach 100 {
38
	device-name "ukbd0";
39
	action "kbdcontrol -k /dev/ukbd0 < /dev/console";
40
};
41

    
42
detach 100 {
43
	device-name "ukbd0";
44
	action "kbdcontrol -k /dev/kbd0 < /dev/console";
45
};
46

    
47
#
48
# Try to start dhclient on Ethernet like interfaces when the link comes
49
# up.  Only devices that are configured to support DHCP will actually
50
# run it.  No link down rule exists because dhclient automaticly exits
51
# when the link goes down.
52
#
53
notify 0 {
54
        match "system"          "IFNET";
55
        match "type"            "LINK_UP";
56
        media-type              "ethernet";
57
        action "/bin/echo -n '$subsystem start ' >>/tmp/rc.linkup";
58
};
59

    
60
# Notify all users before beginning emergency shutdown when we get
61
# a _CRT or _HOT thermal event and we're going to power down the system
62
# very soon.
63
notify 10 {
64
	match "system"		"ACPI";
65
	match "subsystem"	"Thermal";
66
	match "notify"		"0xcc";
67
	action "logger -p kern.emerg 'WARNING: system temperature too high, shutting down soon!'";
68
};
(5-5/94)