ntpd, add missing stratum level. closes https://github.com/opnsense/core/issues/2219

This commit is contained in:
Ad Schellevis 2018-02-23 13:44:31 +01:00
parent a21394ddbc
commit 47cd4bea29

View File

@ -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 */