Commit a4335147 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) remove get_carp_status

parent 90ee04ce
......@@ -143,18 +143,6 @@ function setup_microcode() {
}
}
/****f* legacy/get_carp_status
* NAME
* get_carp_status - Return whether CARP is enabled or disabled.
* RESULT
* boolean - true if CARP is enabled, false if otherwise.
******/
function get_carp_status() {
/* grab the current status of carp */
$status = get_single_sysctl('net.inet.carp.allow');
return (intval($status) > 0);
}
/*
* get_carp_interface_status($carpinterface): returns the status of a carp ip
*/
......
......@@ -34,7 +34,7 @@ require_once("pfsense-utils.inc");
require_once("interfaces.inc");
require_once("widgets/include/carp_status.inc");
$carp_enabled = get_carp_status();
$carp_enabled = (get_single_sysctl('net.inet.carp.allow') > 0);
?>
<table class="table table-striped" width="100%" border="0" cellspacing="0" cellpadding="0" summary="carp status">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment