diff options
author | Administrator <administrator@Scotts-iMac.local> | 2010-01-20 15:19:42 -0500 |
---|---|---|
committer | Administrator <administrator@Scotts-iMac.local> | 2010-01-20 15:19:42 -0500 |
commit | 09f82b1128f612032282498d8d50ee595f314498 (patch) | |
tree | 88bd4e914f590f052816476514fe0f423890ff3c | |
parent | ee7767a5d2528134619911d93120a4dc2d0cea00 (diff) | |
download | pfsense-09f82b1128f612032282498d8d50ee595f314498.zip pfsense-09f82b1128f612032282498d8d50ee595f314498.tar.gz |
Unbreak default sysctl handling
-rw-r--r-- | etc/inc/pfsense-utils.inc | 2 | ||||
-rw-r--r-- | etc/inc/system.inc | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index f519962..1d10913 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -322,7 +322,7 @@ function is_schedule_inuse($schedule) { /****f* pfsense-utils/setup_polling_defaults * NAME - * sets up sysctls for pollingS + * sets up sysctls for polling * INPUTS * * RESULT diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 494bde5..547ffc0 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -57,11 +57,10 @@ function activate_sysctls() { exec("/sbin/sysctl net.enc.in.ipsec_filter_mask=0x00000002"); if (is_array($config['sysctl'])) { - foreach ($config['sysctl']['item'] as $tunable) { + foreach($config['sysctl'] as $tunable) { if($tunable['value'] == "default") $tunable['value'] = get_default_sysctl_value($tunable['tunable']); - mwexec("sysctl " . $tunable['tunable'] . "=\"" - . $tunable['value'] . "\""); + mwexec("/sbin/sysctl " . $tunable['tunable'] . "=\"" . $tunable['value'] . "\""); } } } |