Project

General

Profile

Download (2 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
# When a USB keyboard arrives, attach it as the console keyboard.
31
attach 100 {
32
	device-name "ukbd0";
33
	action "kbdcontrol -k /dev/ukbd0 < /dev/console";
34
};
35

    
36
detach 100 {
37
	device-name "ukbd0";
38
	action "kbdcontrol -k /dev/kbd0 < /dev/console";
39
};
40

    
41
#
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
	action "/usr/local/sbin/pfSctl -c 'interface linkup start $subsystem'";
52
};
53

    
54
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
# 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
};
(5-5/99)