summaryrefslogtreecommitdiffstats
path: root/etc
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
parent84cf0b3ebfd88b561649d333811da52e92039498 (diff)
downloadpfsense-d04e808277b52fa3e47c8832b7cf5ecfed3edf82.zip
pfsense-d04e808277b52fa3e47c8832b7cf5ecfed3edf82.tar.gz
Unbreak sysctl handling.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/globals.inc2
-rw-r--r--etc/inc/system.inc9
2 files changed, 6 insertions, 5 deletions
diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc
index bc3eed7..bab448d 100644
--- a/etc/inc/globals.inc
+++ b/etc/inc/globals.inc
@@ -167,4 +167,4 @@ $sysctls = array("net.inet.ip.portrange.first" => "1024",
$config_parsed = false;
-?>
+?> \ No newline at end of file
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