summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfSense.org>2010-01-20 17:13:17 -0500
committerScott Ullrich <sullrich@pfSense.org>2010-01-20 17:13:17 -0500
commitb2d0140c277a850f0713261351e0e3467f938217 (patch)
tree8449a12b7f9f0f3a173ef1eeb84cc71802f675ad
parent09f82b1128f612032282498d8d50ee595f314498 (diff)
downloadpfsense-b2d0140c277a850f0713261351e0e3467f938217.zip
pfsense-b2d0140c277a850f0713261351e0e3467f938217.tar.gz
Really unbreak sysctl handling
-rw-r--r--etc/inc/system.inc7
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'] . "\"");
+ }
}
}
}
OpenPOWER on IntegriCloud