aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-04-28 04:37:39 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-04-28 04:37:39 +0000
commit66c284c93b76bd7cebd9210592dd6abce2eb41bc (patch)
tree1464ec31fd134589e46801762b0d711068bbdaee
parent665ef04603f8b9f1b1b222f907e2c35207e25339 (diff)
downloadpfsense-packages-66c284c93b76bd7cebd9210592dd6abce2eb41bc.tar.gz
pfsense-packages-66c284c93b76bd7cebd9210592dd6abce2eb41bc.tar.bz2
pfsense-packages-66c284c93b76bd7cebd9210592dd6abce2eb41bc.zip
* Turn off carp sysctl first
* Down interface then delete
-rw-r--r--packages/carp_status.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/carp_status.php b/packages/carp_status.php
index 2bcb7efa..c76ba0fa 100644
--- a/packages/carp_status.php
+++ b/packages/carp_status.php
@@ -40,9 +40,11 @@ if($_POST['disablecarp'] <> "") {
if($status == true) {
$savemsg = "{$carp_counter} ip's have been disabled.";
$carp_counter=find_number_of_created_carp_interfaces();
- for($x=0; $x<$carp_counter; $x++)
- mwexec("/sbin/ifconfig carp{$x} delete");
mwexec("/sbin/sysctl net.inet.carp.allow=0");
+ for($x=0; $x<$carp_counter; $x++) {
+ mwexec("/sbin/ifconfig carp{$x} down");
+ mwexec("/sbin/ifconfig carp{$x} delete");
+ }
} else {
$savemsg = "Carp has been enabled.";
mwexec("/sbin/sysctl net.inet.carp.allow=1");