Unbreak sysctl handling.

This commit is contained in:
Scott Ullrich 2010-11-28 20:27:53 -05:00
parent 84cf0b3ebf
commit d04e808277
2 changed files with 6 additions and 5 deletions

View File

@ -167,4 +167,4 @@ $sysctls = array("net.inet.ip.portrange.first" => "1024",
$config_parsed = false;
?>
?>

View File

@ -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");
}
?>
?>