summaryrefslogtreecommitdiffstats
path: root/etc/devd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'etc/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