aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
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");