summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2009-06-08 19:55:55 -0400
committerjim-p <jim@pingle.org>2009-06-08 19:56:24 -0400
commit59c0a6708edb6fe6d0c23c0ed21265af579ad5bd (patch)
tree21afa4aa6a555698ff0eaa6e2957f6cf6803bdf7
parent76b37651994aec9ade4a417574b476cd4616fadb (diff)
downloadpfsense-59c0a6708edb6fe6d0c23c0ed21265af579ad5bd.zip
pfsense-59c0a6708edb6fe6d0c23c0ed21265af579ad5bd.tar.gz
Add CARP hooks to devd.conf
-rw-r--r--etc/devd.conf16
1 files changed, 16 insertions, 0 deletions
diff --git a/etc/devd.conf b/etc/devd.conf
index 80f527d..3178fc2 100644
--- a/etc/devd.conf
+++ b/etc/devd.conf
@@ -11,6 +11,22 @@ options {
[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 "/usr/local/bin/carpup $subsystem";
+};
+
+notify 100 {
+ match "system" "IFNET";
+ match "type" "LINK_DOWN";
+ match "subsystem" "carp";
+ action "/usr/local/bin/carpdown $subsystem";
+};
+
#notify 0 {
# match "type" "LINK_DOWN";
# media-type "ethernet";
OpenPOWER on IntegriCloud