Commit 5f2014cc authored by Ad Schellevis's avatar Ad Schellevis

sync master

parent 93907b65
......@@ -1380,7 +1380,7 @@ function system_ntp_configure($start_ntpd = true)
$config['ntpd'] = array();
$ntpcfg = "# \n";
$ntpcfg .= "# pfSense ntp configuration file \n";
$ntpcfg .= "# OPNsense ntp configuration file \n";
$ntpcfg .= "# \n\n";
$ntpcfg .= "tinker panic 0 \n";
......@@ -1434,7 +1434,7 @@ function system_ntp_configure($start_ntpd = true)
/* End PPS configuration */
/* Add GPS configuration */
if (!empty($config['ntpd']['gps'])
if (!empty($config['ntpd']['gps'] && !empty($config['ntpd']['gps']['port']))
&& file_exists('/dev/'.$config['ntpd']['gps']['port'])
&& system_ntp_setup_gps($config['ntpd']['gps']['port'])) {
$ntpcfg .= "\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment