From 59c0a6708edb6fe6d0c23c0ed21265af579ad5bd Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 8 Jun 2009 19:55:55 -0400 Subject: Add CARP hooks to devd.conf --- etc/devd.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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"; -- cgit v1.1