1 |
ac24dc24
|
Renato Botelho
|
#
|
2 |
|
|
# pfSense-devd.conf
|
3 |
|
|
#
|
4 |
|
|
# part of pfSense (https://www.pfsense.org)
|
5 |
38809d47
|
Renato Botelho do Couto
|
# Copyright (c) 2004-2013 BSD Perimeter
|
6 |
|
|
# Copyright (c) 2013-2016 Electric Sheep Fencing
|
7 |
8f2f85c3
|
Luiz Otavio O Souza
|
# Copyright (c) 2014-2022 Rubicon Communications, LLC (Netgate)
|
8 |
ac24dc24
|
Renato Botelho
|
# All rights reserved.
|
9 |
|
|
#
|
10 |
b12ea3fb
|
Renato Botelho
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
11 |
|
|
# you may not use this file except in compliance with the License.
|
12 |
|
|
# You may obtain a copy of the License at
|
13 |
ac24dc24
|
Renato Botelho
|
#
|
14 |
b12ea3fb
|
Renato Botelho
|
# http://www.apache.org/licenses/LICENSE-2.0
|
15 |
ac24dc24
|
Renato Botelho
|
#
|
16 |
b12ea3fb
|
Renato Botelho
|
# Unless required by applicable law or agreed to in writing, software
|
17 |
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
18 |
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19 |
|
|
# See the License for the specific language governing permissions and
|
20 |
|
|
# limitations under the License.
|
21 |
7fb94513
|
Scott Ullrich
|
|
22 |
|
|
options {
|
23 |
|
|
directory "/etc/devd";
|
24 |
48906a09
|
Scott Ullrich
|
directory "/usr/local/etc/devd";
|
25 |
7fb94513
|
Scott Ullrich
|
pid-file "/var/run/devd.pid";
|
26 |
|
|
set scsi-controller-regex
|
27 |
|
|
"(aac|adv|adw|aha|ahb|ahc|ahd|aic|amd|amr|asr|bt|ciss|ct|dpt|\
|
28 |
|
|
esp|ida|iir|ips|isp|mlx|mly|mpt|ncr|ncv|nsp|stg|sym|trm|wds)\
|
29 |
|
|
[0-9]+";
|
30 |
|
|
};
|
31 |
|
|
|
32 |
59c0a670
|
jim-p
|
# CARP notify hooks. This will call carpup/carpdown with the
|
33 |
|
|
# interface (carp0, carp1) as the first parameter.
|
34 |
|
|
notify 100 {
|
35 |
77411fa7
|
Ermal
|
match "system" "CARP";
|
36 |
|
|
match "type" "MASTER";
|
37 |
fbb49296
|
Renato Botelho do Couto
|
action "/usr/local/sbin/pfSctl -c 'interface carpmaster '$subsystem";
|
38 |
59c0a670
|
jim-p
|
};
|
39 |
|
|
|
40 |
|
|
notify 100 {
|
41 |
77411fa7
|
Ermal
|
match "system" "CARP";
|
42 |
|
|
match "type" "BACKUP";
|
43 |
fbb49296
|
Renato Botelho do Couto
|
action "/usr/local/sbin/pfSctl -c 'interface carpbackup '$subsystem";
|
44 |
59c0a670
|
jim-p
|
};
|
45 |
|
|
|
46 |
49a4a402
|
jim-p
|
notify 100 {
|
47 |
|
|
match "system" "CARP";
|
48 |
|
|
match "type" "INIT";
|
49 |
fbb49296
|
Renato Botelho do Couto
|
action "/usr/local/sbin/pfSctl -c 'interface carpbackup '$subsystem";
|
50 |
49a4a402
|
jim-p
|
};
|
51 |
|
|
|
52 |
7fb94513
|
Scott Ullrich
|
# When a USB keyboard arrives, attach it as the console keyboard.
|
53 |
|
|
attach 100 {
|
54 |
|
|
device-name "ukbd0";
|
55 |
63dfc7ef
|
Scott Ullrich
|
action "kbdcontrol -k /dev/ukbd0 < /dev/console 2>/dev/null";
|
56 |
7fb94513
|
Scott Ullrich
|
};
|
57 |
36f66286
|
Scott Ullrich
|
|
58 |
7fb94513
|
Scott Ullrich
|
detach 100 {
|
59 |
|
|
device-name "ukbd0";
|
60 |
63dfc7ef
|
Scott Ullrich
|
action "kbdcontrol -k /dev/kbd0 < /dev/console 2>/dev/null";
|
61 |
7fb94513
|
Scott Ullrich
|
};
|
62 |
|
|
|
63 |
36f66286
|
Scott Ullrich
|
#
|
64 |
27dfd848
|
Ermal
|
# Signal upper levels that an event happened on ethernet class interface
|
65 |
36f66286
|
Scott Ullrich
|
#
|
66 |
|
|
notify 0 {
|
67 |
|
|
match "system" "IFNET";
|
68 |
|
|
match "type" "LINK_UP";
|
69 |
|
|
media-type "ethernet";
|
70 |
fbb49296
|
Renato Botelho do Couto
|
action "/usr/local/sbin/pfSctl -c 'interface linkup start '$subsystem";
|
71 |
36f66286
|
Scott Ullrich
|
};
|
72 |
|
|
|
73 |
6c9e8647
|
Ermal
|
notify 0 {
|
74 |
|
|
match "system" "IFNET";
|
75 |
|
|
match "type" "LINK_DOWN";
|
76 |
|
|
media-type "ethernet";
|
77 |
fbb49296
|
Renato Botelho do Couto
|
action "/usr/local/sbin/pfSctl -c 'interface linkup stop '$subsystem";
|
78 |
6c9e8647
|
Ermal
|
};
|
79 |
|
|
|
80 |
1de3cd87
|
smos
|
#
|
81 |
|
|
# Signal upper levels that an event happened on 802.11 class interface
|
82 |
|
|
#
|
83 |
|
|
notify 0 {
|
84 |
|
|
match "system" "IFNET";
|
85 |
|
|
match "type" "LINK_UP";
|
86 |
909b0a91
|
smos
|
match "subsystem" "[a-z]+[0-9]+_wlan[0-9]+";
|
87 |
fbb49296
|
Renato Botelho do Couto
|
action "/usr/local/sbin/pfSctl -c 'interface linkup start '$subsystem";
|
88 |
1de3cd87
|
smos
|
};
|
89 |
|
|
|
90 |
7fb94513
|
Scott Ullrich
|
# Notify all users before beginning emergency shutdown when we get
|
91 |
|
|
# a _CRT or _HOT thermal event and we're going to power down the system
|
92 |
|
|
# very soon.
|
93 |
|
|
notify 10 {
|
94 |
|
|
match "system" "ACPI";
|
95 |
|
|
match "subsystem" "Thermal";
|
96 |
|
|
match "notify" "0xcc";
|
97 |
fbb49296
|
Renato Botelho do Couto
|
action "logger -p kern.emerg WARNING: system temperature too high, shutting down soon!";
|
98 |
7fb94513
|
Scott Ullrich
|
};
|