aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-04-28 04:40:47 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-04-28 04:40:47 +0000
commit4e81fad63c5044c2e3883834677218eba0d96d7d (patch)
tree3145595de0a2a10b3cd27a4650cf3997e085c955 /packages
parent66c284c93b76bd7cebd9210592dd6abce2eb41bc (diff)
downloadpfsense-packages-4e81fad63c5044c2e3883834677218eba0d96d7d.tar.gz
pfsense-packages-4e81fad63c5044c2e3883834677218eba0d96d7d.tar.bz2
pfsense-packages-4e81fad63c5044c2e3883834677218eba0d96d7d.zip
* Destroy of deleting
* Correctly show the number of ips turned off from carp
Diffstat (limited to 'packages')
-rw-r--r--packages/carp_status.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/carp_status.php b/packages/carp_status.php
index c76ba0fa..145ea131 100644
--- a/packages/carp_status.php
+++ b/packages/carp_status.php
@@ -38,13 +38,13 @@ function gentitle_pkg($pgname) {
$status = get_carp_status();
if($_POST['disablecarp'] <> "") {
if($status == true) {
- $savemsg = "{$carp_counter} ip's have been disabled.";
$carp_counter=find_number_of_created_carp_interfaces();
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");
+ mwexec("/sbin/ifconfig carp{$x} destroy");
}
+ $savemsg = "{$carp_counter} ip's have been disabled.";
} else {
$savemsg = "Carp has been enabled.";
mwexec("/sbin/sysctl net.inet.carp.allow=1");