Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
ebcc9920
Commit
ebcc9920
authored
Dec 09, 2014
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
etc: split devd.conf into individual override files
parent
16e2a048
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
74 deletions
+48
-74
devd.conf
etc/devd.conf
+0
-74
carp.conf
usr/local/etc/devd/carp.conf
+16
-0
ifnet.conf
usr/local/etc/devd/ifnet.conf
+32
-0
No files found.
etc/devd.conf
deleted
100644 → 0
View file @
16e2a048
# $Id$
# $FreeBSD: src/etc/devd.conf,v 1.26.2.1 2005/09/03 22:49:22 sam Exp $
options
{
directory
"/etc/devd"
;
directory
"/usr/local/etc/devd"
;
pid
-
file
"/var/run/devd.pid"
;
set
scsi
-
controller
-
regex
"
(
aac
|
adv
|
adw
|
aha
|
ahb
|
ahc
|
ahd
|
aic
|
amd
|
amr
|
asr
|
bt
|
ciss
|
ct
|
dpt
|\
esp
|
ida
|
iir
|
ips
|
isp
|
mlx
|
mly
|
mpt
|
ncr
|
ncv
|
nsp
|
stg
|
sym
|
trm
|
wds
)\
[
0
-
9
]+
"
;
};
# CARP notify hooks. This will call carpup/carpdown with the
# interface (carp0, carp1) as the first parameter.
notify
100
{
match
"system"
"CARP"
;
match
"type"
"MASTER"
;
action
"/usr/local/sbin/pfSctl -c 'interface carpmaster $subsystem'"
;
};
notify
100
{
match
"system"
"CARP"
;
match
"type"
"BACKUP"
;
action
"/usr/local/sbin/pfSctl -c 'interface carpbackup $subsystem'"
;
};
# When a USB keyboard arrives, attach it as the console keyboard.
attach
100
{
device
-
name
"ukbd0"
;
action
"kbdcontrol -k /dev/ukbd0 < /dev/console 2>/dev/null"
;
};
detach
100
{
device
-
name
"ukbd0"
;
action
"kbdcontrol -k /dev/kbd0 < /dev/console 2>/dev/null"
;
};
#
# Signal upper levels that an event happened on ethernet class interface
#
notify
0
{
match
"system"
"IFNET"
;
match
"type"
"LINK_UP"
;
media
-
type
"ethernet"
;
action
"/usr/local/sbin/pfSctl -c 'interface linkup start $subsystem'"
;
};
notify
0
{
match
"system"
"IFNET"
;
match
"type"
"LINK_DOWN"
;
media
-
type
"ethernet"
;
action
"/usr/local/sbin/pfSctl -c 'interface linkup stop $subsystem'"
;
};
#
# Signal upper levels that an event happened on 802.11 class interface
#
notify
0
{
match
"system"
"IFNET"
;
match
"type"
"LINK_UP"
;
match
"subsystem"
"[a-z]+[0-9]+_wlan[0-9]+"
;
action
"/usr/local/sbin/pfSctl -c 'interface linkup start $subsystem'"
;
};
# Notify all users before beginning emergency shutdown when we get
# a _CRT or _HOT thermal event and we're going to power down the system
# very soon.
notify
10
{
match
"system"
"ACPI"
;
match
"subsystem"
"Thermal"
;
match
"notify"
"0xcc"
;
action
"logger -p kern.emerg 'WARNING: system temperature too high, shutting down soon!'"
;
};
usr/local/etc/devd/carp.conf
0 → 100644
View file @
ebcc9920
#
# CARP notify hooks. This will call carpup/carpdown with the
# interface (carp0, carp1) as the first parameter.
#
notify
100
{
match
"system"
"CARP"
;
match
"type"
"MASTER"
;
action
"/usr/local/sbin/pfSctl -c 'interface carpmaster $subsystem'"
;
};
notify
100
{
match
"system"
"CARP"
;
match
"type"
"BACKUP"
;
action
"/usr/local/sbin/pfSctl -c 'interface carpbackup $subsystem'"
;
};
usr/local/etc/devd/ifnet.conf
0 → 100644
View file @
ebcc9920
#
# Override the system defaults of devd so that pfSctl receives
# both LINK_UP and LINK_DOWN events on wired and wireless devices.
#
notify
101
{
match
"system"
"IFNET"
;
match
"type"
"LINK_UP"
;
media
-
type
"ethernet"
;
action
"/usr/local/sbin/pfSctl -c 'interface linkup start $subsystem'"
;
};
notify
101
{
match
"system"
"IFNET"
;
match
"type"
"LINK_DOWN"
;
media
-
type
"ethernet"
;
action
"/usr/local/sbin/pfSctl -c 'interface linkup stop $subsystem'"
;
};
notify
101
{
match
"system"
"IFNET"
;
match
"type"
"LINK_UP"
;
media
-
type
"802.11"
;
action
"/usr/local/sbin/pfSctl -c 'interface linkup start $subsystem'"
;
};
notify
101
{
match
"system"
"IFNET"
;
match
"type"
"LINK_DOWN"
;
media
-
type
"802.11"
;
action
"/usr/local/sbin/pfSctl -c 'interface linkup stop $subsystem'"
;
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment