From 47cd4bea29165abde69aaad38dee7592c940ca4e Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Fri, 23 Feb 2018 13:44:31 +0100 Subject: [PATCH] ntpd, add missing stratum level. closes https://github.com/opnsense/core/issues/2219 --- src/etc/inc/plugins.inc.d/ntpd.inc | 6 ++++++ 1 file changed, 6 insertions(+) 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 */