diff options
author | Jean Cyr <jcyr@dillobits.com> | 2015-11-17 00:05:27 -0500 |
---|---|---|
committer | Jean Cyr <jcyr@dillobits.com> | 2015-11-17 00:05:27 -0500 |
commit | 66937f5ccf2d44a7071190fd067ea6aaf91e964b (patch) | |
tree | 916ff6ae1fff3773b033401ae877ca051405d830 | |
parent | 30a61a895a969cfa890a30df76b2f83b252cb231 (diff) | |
download | pfsense-66937f5ccf2d44a7071190fd067ea6aaf91e964b.zip pfsense-66937f5ccf2d44a7071190fd067ea6aaf91e964b.tar.gz |
Fix missing stratum setting
Add missing stratum parameter to the ntpd.conf file when specified on
the Serial GPS page.
-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 5de9ec4..74b1ea5 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -1616,6 +1616,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']) |