summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-11-28 20:27:53 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-11-28 20:27:53 -0500
commitd04e808277b52fa3e47c8832b7cf5ecfed3edf82 (patch)
tree68926b6f70b75a97f0c4a8eae4defe10b56a8724 /etc/inc/system.inc
parent84cf0b3ebfd88b561649d333811da52e92039498 (diff)
downloadpfsense-d04e808277b52fa3e47c8832b7cf5ecfed3edf82.zip
pfsense-d04e808277b52fa3e47c8832b7cf5ecfed3edf82.tar.gz
Unbreak sysctl handling.
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r--etc/inc/system.inc9
1 files changed, 5 insertions, 4 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 97096c4..dcc8df6 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -52,9 +52,10 @@ function activate_powerd() {
function get_default_sysctl_value($id) {
global $sysctls;
-
- if (isset($sysctls[$id]))
- return $value;
+ foreach($sysctls as $sysctl => $value) {
+ if($sysctl == $id)
+ return $value;
+ }
}
function activate_sysctls() {
@@ -1479,4 +1480,4 @@ function system_get_dmesg_boot() {
return file_get_contents("{$g['varlog_path']}/dmesg.boot");
}
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud