"") { if($status == true) { $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} destroy"); } $savemsg = "{$carp_counter} IPs have been disabled."; } else { $savemsg = "CARP has been enabled."; mwexec("/sbin/sysctl net.inet.carp.allow=1"); interfaces_carp_configure(); interfaces_carp_bring_up_final(); } } $status = get_carp_status(); $pgtitle = array("Status","CARP (failover)"); include("head.inc"); ?>