summaryrefslogtreecommitdiffstats
path: root/usr/local/www/carp_status.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-07-07 20:06:37 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-07-07 20:06:37 -0300
commit971de1f98a991a42c448415d34805d2970b86c4f (patch)
tree3c09598d67f04060af6113153c1995d804fb1244 /usr/local/www/carp_status.php
parent79cd8239ed8dd7d2dd0d86475b62ee25c5d5736d (diff)
downloadpfsense-971de1f98a991a42c448415d34805d2970b86c4f.zip
pfsense-971de1f98a991a42c448415d34805d2970b86c4f.tar.gz
Convert almost all /sbin/sysctl calls to php functions
Diffstat (limited to 'usr/local/www/carp_status.php')
-rw-r--r--usr/local/www/carp_status.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/local/www/carp_status.php b/usr/local/www/carp_status.php
index 30251d5..192875e 100644
--- a/usr/local/www/carp_status.php
+++ b/usr/local/www/carp_status.php
@@ -34,7 +34,6 @@
##|-PRIV
/*
- pfSense_BUILDER_BINARIES: /sbin/sysctl
pfSense_MODULE: carp
*/
@@ -56,7 +55,7 @@ if($_POST['carp_maintenancemode'] <> "") {
}
if($_POST['disablecarp'] <> "") {
if($status == true) {
- mwexec("/sbin/sysctl net.inet.carp.allow=0");
+ set_single_sysctl('net.inet.carp.allow', '0');
if(is_array($config['virtualip']['vip'])) {
$viparr = &$config['virtualip']['vip'];
foreach ($viparr as $vip) {
@@ -83,7 +82,7 @@ if($_POST['disablecarp'] <> "") {
}
}
interfaces_carp_setup();
- mwexec("/sbin/sysctl net.inet.carp.allow=1");
+ set_single_sysctl('net.inet.carp.allow', '1');
}
}
OpenPOWER on IntegriCloud