mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
70 lines
2.0 KiB
Plaintext
70 lines
2.0 KiB
Plaintext
# $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" "IFNET";
|
|
match "type" "LINK_UP";
|
|
match "subsystem" "carp";
|
|
action "/etc/rc.carpmaster $subsystem";
|
|
};
|
|
|
|
notify 100 {
|
|
match "system" "IFNET";
|
|
match "type" "LINK_DOWN";
|
|
match "subsystem" "carp";
|
|
action "/etc/rc.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";
|
|
};
|
|
|
|
detach 100 {
|
|
device-name "ukbd0";
|
|
action "kbdcontrol -k /dev/kbd0 < /dev/console";
|
|
};
|
|
|
|
#
|
|
# Try to start dhclient on Ethernet like interfaces when the link comes
|
|
# up. Only devices that are configured to support DHCP will actually
|
|
# run it. No link down rule exists because dhclient automaticly exits
|
|
# when the link goes down.
|
|
#
|
|
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'";
|
|
};
|
|
|
|
# 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!'";
|
|
};
|