diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-05-24 21:07:25 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-05-24 21:07:25 +0000 |
commit | f633fec56a76b12f3c548ae96fa6a1c03ea6495d (patch) | |
tree | f7aa43dd0bf3f2d9f895c028969eaa756e9f5d02 /etc | |
parent | b47ba91e4255f7dcaff7ac70e8d10ff1acfa497b (diff) | |
download | pfsense-f633fec56a76b12f3c548ae96fa6a1c03ea6495d.zip pfsense-f633fec56a76b12f3c548ae96fa6a1c03ea6495d.tar.gz |
Correctly bring up carp interfaces if carpdev is not chosen
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 0c83fdb..e8692d1 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -306,7 +306,7 @@ function interfaces_carp_configure() { $password = " pass " . $carp['password']; } $carpdev = ""; - if($carp['interface'] <> "AUTO") { + if($carp['interface'] <> "AUTO" and $carp['interface'] <> "") { $carpdev = " carpdev {$carp['interface']} "; } mwexec("/sbin/ifconfig carp" . $carp_instances_counter . " " . $carp['ipaddress'] . "/" . $carp['netmask'] . " broadcast " . $broadcast_address . " vhid " . $carp['vhid'] . "{$carpdev} advskew " . $carp['advskew'] . $password); |