diff options
author | Jean Cyr <jcyr@dillobits.com> | 2015-11-15 22:36:36 -0500 |
---|---|---|
committer | Jean Cyr <jcyr@dillobits.com> | 2015-11-15 22:36:36 -0500 |
commit | f6fb63722303977ca716cf6baaaed416ce6411ce (patch) | |
tree | 23c02d46d92988b6408d9da120f030d1a4c32d85 /etc | |
parent | c670525f0455c4cd7bf7486a12688441339cb6d3 (diff) | |
download | pfsense-f6fb63722303977ca716cf6baaaed416ce6411ce.zip pfsense-f6fb63722303977ca716cf6baaaed416ce6411ce.tar.gz |
Add missing stratum parameter
Add missing stratum parameter in ntpd.conf when specified on Serial GPS
page.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/system.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index d0f21aa..9d3c30c 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -1628,6 +1628,10 @@ function system_ntp_configure($start_ntpd=true) { $ntpcfg .= ' refid '; $ntpcfg .= $config['ntpd']['gps']['refid']; } + if (!empty($config['ntpd']['gps']['stratum'])) { + $ntpcfg .= ' stratum '; + $ntpcfg .= $config['ntpd']['gps']['stratum']; + } $ntpcfg .= "\n"; }elseif (is_array($config['ntpd']) && !empty($config['ntpd']['gpsport']) && file_exists('/dev/'.$config['ntpd']['gpsport']) |