Project

General

Profile

Download (2.9 KB) Statistics
| Branch: | Tag: | Revision:
1
#
2
# pfSense-devd.conf
3
#
4
# part of pfSense (https://www.pfsense.org)
5
# Copyright (c) 2004-2016 Rubicon Communications, LLC (Netgate)
6
# All rights reserved.
7
#
8
# Licensed under the Apache License, Version 2.0 (the "License");
9
# you may not use this file except in compliance with the License.
10
# You may obtain a copy of the License at
11
#
12
# http://www.apache.org/licenses/LICENSE-2.0
13
#
14
# Unless required by applicable law or agreed to in writing, software
15
# distributed under the License is distributed on an "AS IS" BASIS,
16
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
# See the License for the specific language governing permissions and
18
# limitations under the License.
19

    
20
options {
21
	directory "/etc/devd";
22
	directory "/usr/local/etc/devd";
23
	pid-file "/var/run/devd.pid";
24
	set scsi-controller-regex
25
		"(aac|adv|adw|aha|ahb|ahc|ahd|aic|amd|amr|asr|bt|ciss|ct|dpt|\
26
		esp|ida|iir|ips|isp|mlx|mly|mpt|ncr|ncv|nsp|stg|sym|trm|wds)\
27
		[0-9]+";
28
};
29

    
30
# CARP notify hooks. This will call carpup/carpdown with the
31
# interface (carp0, carp1) as the first parameter.
32
notify 100 {
33
    match "system"          "CARP";
34
    match "type"            "MASTER";
35
    action "/usr/local/sbin/pfSctl -c 'interface carpmaster $subsystem'";
36
};
37

    
38
notify 100 {
39
    match "system"          "CARP";
40
    match "type"            "BACKUP";
41
    action "/usr/local/sbin/pfSctl -c 'interface carpbackup $subsystem'";
42
};
43

    
44
notify 100 {
45
    match "system"          "CARP";
46
    match "type"            "INIT";
47
    action "/usr/local/sbin/pfSctl -c 'interface carpbackup $subsystem'";
48
};
49

    
50
# When a USB keyboard arrives, attach it as the console keyboard.
51
attach 100 {
52
	device-name "ukbd0";
53
	action "kbdcontrol -k /dev/ukbd0 < /dev/console 2>/dev/null";
54
};
55

    
56
detach 100 {
57
	device-name "ukbd0";
58
	action "kbdcontrol -k /dev/kbd0 < /dev/console 2>/dev/null";
59
};
60

    
61
#
62
# Signal upper levels that an event happened on ethernet class interface
63
#
64
notify 0 {
65
        match "system"          "IFNET";
66
        match "type"            "LINK_UP";
67
        media-type              "ethernet";
68
	action "/usr/local/sbin/pfSctl -c 'interface linkup start $subsystem'";
69
};
70

    
71
notify 0 {
72
        match "system"          "IFNET";
73
	match "type"            "LINK_DOWN";
74
	media-type              "ethernet";
75
	action "/usr/local/sbin/pfSctl -c 'interface linkup stop $subsystem'";
76
};
77

    
78
#
79
# Signal upper levels that an event happened on 802.11 class interface
80
#
81
notify 0 {
82
        match "system"          "IFNET";
83
        match "type"            "LINK_UP";
84
	match "subsystem"	"[a-z]+[0-9]+_wlan[0-9]+";
85
	action "/usr/local/sbin/pfSctl -c 'interface linkup start $subsystem'";
86
};
87

    
88
# Notify all users before beginning emergency shutdown when we get
89
# a _CRT or _HOT thermal event and we're going to power down the system
90
# very soon.
91
notify 10 {
92
	match "system"		"ACPI";
93
	match "subsystem"	"Thermal";
94
	match "notify"		"0xcc";
95
	action "logger -p kern.emerg 'WARNING: system temperature too high, shutting down soon!'";
96
};
(10-10/78)