mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
ntpd, add missing stratum level. closes https://github.com/opnsense/core/issues/2219
This commit is contained in:
parent
a21394ddbc
commit
47cd4bea29
@ -234,6 +234,9 @@ function ntpd_configure_do($start_ntpd = true, $verbose = false)
|
||||
$ntpcfg .= ' refid ';
|
||||
$ntpcfg .= $config['ntpd']['pps']['refid'];
|
||||
}
|
||||
if (!empty($config['ntpd']['pps']['stratum'])) {
|
||||
$ntpcfg .= ' stratum ' . $config['ntpd']['pps']['stratum'];
|
||||
}
|
||||
$ntpcfg .= "\n";
|
||||
}
|
||||
/* End PPS configuration */
|
||||
@ -298,6 +301,9 @@ function ntpd_configure_do($start_ntpd = true, $verbose = false)
|
||||
$ntpcfg .= ' refid ';
|
||||
$ntpcfg .= $config['ntpd']['gps']['refid'];
|
||||
}
|
||||
if (!empty($config['ntpd']['gps']['stratum'])) {
|
||||
$ntpcfg .= ' stratum ' . $config['ntpd']['gps']['stratum'];
|
||||
}
|
||||
$ntpcfg .= "\n";
|
||||
}
|
||||
/* End GPS configuration */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user