mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Unbreak sysctl handling.
This commit is contained in:
parent
84cf0b3ebf
commit
d04e808277
@ -167,4 +167,4 @@ $sysctls = array("net.inet.ip.portrange.first" => "1024",
|
||||
|
||||
$config_parsed = false;
|
||||
|
||||
?>
|
||||
?>
|
||||
@ -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");
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user