Projet

Général

Profil

Télécharger (2,18 ko) Statistiques
| Branche: | Tag: | Révision:

univnautes / etc / devd.conf @ a94b9bef

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"		"[a-zA-Z0-9_]+_vip[0-9]+";
20
    action "/etc/rc.carpmaster $subsystem";
21
};
22

    
23
notify 100 {
24
    match "system"          "IFNET";
25
    match "type"            "LINK_DOWN";
26
    match "subsystem"		"[a-zA-Z0-9_]+_vip[0-9]+";
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 2>/dev/null";
34
};
35

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

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

    
51
notify 0 {
52
        match "system"          "IFNET";
53
	match "type"            "LINK_DOWN";
54
	media-type              "ethernet";
55
	action "/usr/local/sbin/pfSctl -c 'interface linkup stop $subsystem'";
56
};
57

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

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