Project

General

Profile

Download (2.9 KB) Statistics
| Branch: | Tag: | Revision:
1 ac24dc24 Renato Botelho
#
2
# pfSense-devd.conf
3
#
4
# part of pfSense (https://www.pfsense.org)
5 81299b5c Renato Botelho
# Copyright (c) 2004-2016 Rubicon Communications, LLC (Netgate)
6 ac24dc24 Renato Botelho
# All rights reserved.
7
#
8 b12ea3fb Renato Botelho
# 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 ac24dc24 Renato Botelho
#
12 b12ea3fb Renato Botelho
# http://www.apache.org/licenses/LICENSE-2.0
13 ac24dc24 Renato Botelho
#
14 b12ea3fb Renato Botelho
# 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 7fb94513 Scott Ullrich
20
options {
21
	directory "/etc/devd";
22 48906a09 Scott Ullrich
	directory "/usr/local/etc/devd";
23 7fb94513 Scott Ullrich
	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 59c0a670 jim-p
# CARP notify hooks. This will call carpup/carpdown with the
31
# interface (carp0, carp1) as the first parameter.
32
notify 100 {
33 77411fa7 Ermal
    match "system"          "CARP";
34
    match "type"            "MASTER";
35 1c3d2cd3 Ermal
    action "/usr/local/sbin/pfSctl -c 'interface carpmaster $subsystem'";
36 59c0a670 jim-p
};
37
38
notify 100 {
39 77411fa7 Ermal
    match "system"          "CARP";
40
    match "type"            "BACKUP";
41 1c3d2cd3 Ermal
    action "/usr/local/sbin/pfSctl -c 'interface carpbackup $subsystem'";
42 59c0a670 jim-p
};
43
44 49a4a402 jim-p
notify 100 {
45
    match "system"          "CARP";
46
    match "type"            "INIT";
47
    action "/usr/local/sbin/pfSctl -c 'interface carpbackup $subsystem'";
48
};
49
50 7fb94513 Scott Ullrich
# When a USB keyboard arrives, attach it as the console keyboard.
51
attach 100 {
52
	device-name "ukbd0";
53 63dfc7ef Scott Ullrich
	action "kbdcontrol -k /dev/ukbd0 < /dev/console 2>/dev/null";
54 7fb94513 Scott Ullrich
};
55 36f66286 Scott Ullrich
56 7fb94513 Scott Ullrich
detach 100 {
57
	device-name "ukbd0";
58 63dfc7ef Scott Ullrich
	action "kbdcontrol -k /dev/kbd0 < /dev/console 2>/dev/null";
59 7fb94513 Scott Ullrich
};
60
61 36f66286 Scott Ullrich
#
62 27dfd848 Ermal
# Signal upper levels that an event happened on ethernet class interface
63 36f66286 Scott Ullrich
#
64
notify 0 {
65
        match "system"          "IFNET";
66
        match "type"            "LINK_UP";
67
        media-type              "ethernet";
68 0ae6daf8 Ermal
	action "/usr/local/sbin/pfSctl -c 'interface linkup start $subsystem'";
69 36f66286 Scott Ullrich
};
70
71 6c9e8647 Ermal
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 1de3cd87 smos
#
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 909b0a91 smos
	match "subsystem"	"[a-z]+[0-9]+_wlan[0-9]+";
85 1de3cd87 smos
	action "/usr/local/sbin/pfSctl -c 'interface linkup start $subsystem'";
86
};
87
88 7fb94513 Scott Ullrich
# 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
};