Project

General

Profile

Download (2.3 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"          "CARP";
18
    match "type"            "MASTER";
19
    action "/usr/local/sbin/pfSctl -c 'interface carpmaster $subsystem'";
20
};
21

    
22
notify 100 {
23
    match "system"          "CARP";
24
    match "type"            "BACKUP";
25
    action "/usr/local/sbin/pfSctl -c 'interface carpbackup $subsystem'";
26
};
27

    
28
notify 100 {
29
    match "system"          "CARP";
30
    match "type"            "INIT";
31
    action "/usr/local/sbin/pfSctl -c 'interface carpbackup $subsystem'";
32
};
33

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

    
40
detach 100 {
41
	device-name "ukbd0";
42
	action "kbdcontrol -k /dev/kbd0 < /dev/console 2>/dev/null";
43
};
44

    
45
#
46
# Signal upper levels that an event happened on ethernet class interface
47
#
48
notify 0 {
49
        match "system"          "IFNET";
50
        match "type"            "LINK_UP";
51
        media-type              "ethernet";
52
	action "/usr/local/sbin/pfSctl -c 'interface linkup start $subsystem'";
53
};
54

    
55
notify 0 {
56
        match "system"          "IFNET";
57
	match "type"            "LINK_DOWN";
58
	media-type              "ethernet";
59
	action "/usr/local/sbin/pfSctl -c 'interface linkup stop $subsystem'";
60
};
61

    
62
#
63
# Signal upper levels that an event happened on 802.11 class interface
64
#
65
notify 0 {
66
        match "system"          "IFNET";
67
        match "type"            "LINK_UP";
68
	match "subsystem"	"[a-z]+[0-9]+_wlan[0-9]+";
69
	action "/usr/local/sbin/pfSctl -c 'interface linkup start $subsystem'";
70
};
71

    
72
# Notify all users before beginning emergency shutdown when we get
73
# a _CRT or _HOT thermal event and we're going to power down the system
74
# very soon.
75
notify 10 {
76
	match "system"		"ACPI";
77
	match "subsystem"	"Thermal";
78
	match "notify"		"0xcc";
79
	action "logger -p kern.emerg 'WARNING: system temperature too high, shutting down soon!'";
80
};
(6-6/96)