diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-15 17:57:27 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-15 17:57:27 +0000 |
commit | 17c7054b64d747302b9f350d3a810f78534b9ae4 (patch) | |
tree | 11df6a14e0fd57e7449b15af42a4dae1378e2dca | |
parent | 5c2c817addca3508afa471155c568152c910b85b (diff) | |
download | pfsense-17c7054b64d747302b9f350d3a810f78534b9ae4.zip pfsense-17c7054b64d747302b9f350d3a810f78534b9ae4.tar.gz |
* pfsync0 should already exist, do not create
* assign syncdev and bring up at same time to match FreeBSD's pfsync rc.d script
-rw-r--r-- | etc/inc/interfaces.inc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 48390a9..c8aebbc 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -340,15 +340,12 @@ function interfaces_carp_configure() { } /* do not setup pfsync twice */ if($total_carp_interfaces_defined == 0) { - if($debugging) - echo "Bringing up pfsync0.\n"; - mwexec("/sbin/ifconfig pfsync0 create"); + //if($debugging) + // echo "Bringing up pfsync0.\n"; + //mwexec("/sbin/ifconfig pfsync0 create"); if($debugging) echo "Assigning syncdev to {$carp_sync_int}.\n"; - mwexec("/sbin/ifconfig pfsync0 syncdev " . $carp_sync_int); - if($debugging) - echo "Bringing up syncif pfsync0.\n"; - mwexec("/sbin/ifconfig pfsync0 up"); + mwexec("/sbin/ifconfig pfsync0 syncdev {$carp_sync_int} up"); } } } |