summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r--etc/inc/system.inc11
1 files changed, 2 insertions, 9 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index ee3e6e3..273b5a2 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -73,19 +73,12 @@ function get_default_sysctl_value($id) {
}
function activate_sysctls() {
- global $config, $g;
+ global $config, $g, $sysctls;
if ($g['platform'] == 'jail')
return;
- $sysctls = array(
- "net.enc.out.ipsec_bpf_mask" => "0x0001",
- "net.enc.out.ipsec_filter_mask" => "0x0001",
- "net.enc.in.ipsec_bpf_mask" => "0x0002",
- "net.enc.in.ipsec_filter_mask" => "0x0002"
- );
-
- if(is_array($config['sysctl'])) {
+ if (is_array($config['sysctl'])) {
foreach($config['sysctl']['item'] as $tunable) {
if($tunable['value'] == "default")
$value = get_default_sysctl_value($tunable['tunable']);
OpenPOWER on IntegriCloud