summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-11-04 22:47:03 +0000
committerErmal Luçi <eri@pfsense.org>2008-11-04 22:47:03 +0000
commit99e88aa0f377a794a86451e978057474c3259d0f (patch)
tree634d6987597a4ebb443b0810aaa04324efb4f2c5 /etc
parent68c3a2644020ab168aab434e62557e65bfbfe932 (diff)
downloadpfsense-99e88aa0f377a794a86451e978057474c3259d0f.zip
pfsense-99e88aa0f377a794a86451e978057474c3259d0f.tar.gz
Change slightly the order of execution to allow overriding hardcoded defaults.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc11
1 files changed, 5 insertions, 6 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 878d37e..866abdb 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -35,16 +35,15 @@ require_once("functions.inc");
function activate_sysctls() {
global $config, $g;
- if (is_array($config['sysctl']))
- foreach ($config['sysctl']['item'] as $tunable)
- mwexec("sysctl " . $tunable['tunable'] . "=\""
- . $tunable['value'] . "\"");
-
exec("/sbin/sysctl net.enc.out.ipsec_bpf_mask=0x00000000");
exec("/sbin/sysctl net.enc.out.ipsec_filter_mask=0x00000000");
exec("/sbin/sysctl net.enc.in.ipsec_bpf_mask=0x00000000");
exec("/sbin/sysctl net.enc.in.ipsec_filter_mask=0x00000001");
-
+
+ if (is_array($config['sysctl']))
+ foreach ($config['sysctl']['item'] as $tunable)
+ mwexec("sysctl " . $tunable['tunable'] . "=\""
+ . $tunable['value'] . "\"");
}
function system_resolvconf_generate($dynupdate = false) {
OpenPOWER on IntegriCloud