diff options
author | jim-p <jim@pingle.org> | 2009-06-08 19:55:55 -0400 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2009-06-08 19:56:24 -0400 |
commit | 59c0a6708edb6fe6d0c23c0ed21265af579ad5bd (patch) | |
tree | 21afa4aa6a555698ff0eaa6e2957f6cf6803bdf7 | |
parent | 76b37651994aec9ade4a417574b476cd4616fadb (diff) | |
download | pfsense-59c0a6708edb6fe6d0c23c0ed21265af579ad5bd.zip pfsense-59c0a6708edb6fe6d0c23c0ed21265af579ad5bd.tar.gz |
Add CARP hooks to devd.conf
-rw-r--r-- | etc/devd.conf | 16 |
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"; |