diff --git a/src/etc/inc/plugins.inc.d/ntpd.inc b/src/etc/inc/plugins.inc.d/ntpd.inc index 5da08ab3e..dc951d824 100644 --- a/src/etc/inc/plugins.inc.d/ntpd.inc +++ b/src/etc/inc/plugins.inc.d/ntpd.inc @@ -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 */