summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-12-01 17:04:38 +0000
committerErmal <eri@pfsense.org>2010-12-01 17:04:38 +0000
commit6c9e8647f418fbbb854fbc0159a902fc43ca1f88 (patch)
tree91d7edb583ae9f3ad550d52c0a4b8e6b7f1fb0a1 /etc
parentddb09227a23f43ad8a7c77776210df50254bc63e (diff)
downloadpfsense-6c9e8647f418fbbb854fbc0159a902fc43ca1f88.zip
pfsense-6c9e8647f418fbbb854fbc0159a902fc43ca1f88.tar.gz
Enable LINK_DOWN event for interfaces. It will help cases similar to http://forum.pfsense.org/index.php/topic,29032.0.html
Diffstat (limited to 'etc')
-rw-r--r--etc/devd.conf13
1 files changed, 7 insertions, 6 deletions
diff --git a/etc/devd.conf b/etc/devd.conf
index 647de43..7c63591 100644
--- a/etc/devd.conf
+++ b/etc/devd.conf
@@ -27,12 +27,6 @@ notify 100 {
action "/etc/rc.carpbackup $subsystem";
};
-#notify 0 {
-# match "type" "LINK_DOWN";
-# media-type "ethernet";
-# action "/usr/local/sbin/pfSctl -c 'interface linkup stop $subsystem'";
-#};
-
# When a USB keyboard arrives, attach it as the console keyboard.
attach 100 {
device-name "ukbd0";
@@ -57,6 +51,13 @@ notify 0 {
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.
OpenPOWER on IntegriCloud