diff options
author | Scott Ullrich <sullrich@pfSense.org> | 2010-01-20 17:13:17 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfSense.org> | 2010-01-20 17:13:17 -0500 |
commit | b2d0140c277a850f0713261351e0e3467f938217 (patch) | |
tree | 8449a12b7f9f0f3a173ef1eeb84cc71802f675ad /etc/inc/system.inc | |
parent | 09f82b1128f612032282498d8d50ee595f314498 (diff) | |
download | pfsense-b2d0140c277a850f0713261351e0e3467f938217.zip pfsense-b2d0140c277a850f0713261351e0e3467f938217.tar.gz |
Really unbreak sysctl handling
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r-- | etc/inc/system.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 547ffc0..a8e8a09 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -58,9 +58,12 @@ function activate_sysctls() { if (is_array($config['sysctl'])) { foreach($config['sysctl'] as $tunable) { - if($tunable['value'] == "default") - $tunable['value'] = get_default_sysctl_value($tunable['tunable']); + if($tunable['value'] == "default") { + $value = get_default_sysctl_value($tunable['tunable']); + mwexec("/sbin/sysctl " . $tunable['tunable'] . "=\"" . $value . "\""); + } else { mwexec("/sbin/sysctl " . $tunable['tunable'] . "=\"" . $tunable['value'] . "\""); + } } } } |