Commit 38ef5065 authored by Ad Schellevis's avatar Ad Schellevis

small fix in NTP start

parent 87ab869f
...@@ -1388,7 +1388,7 @@ function system_ntp_configure($start_ntpd = true) ...@@ -1388,7 +1388,7 @@ function system_ntp_configure($start_ntpd = true)
$config['ntpd'] = array(); $config['ntpd'] = array();
$ntpcfg = "# \n"; $ntpcfg = "# \n";
$ntpcfg .= "# pfSense ntp configuration file \n"; $ntpcfg .= "# OPNsense ntp configuration file \n";
$ntpcfg .= "# \n\n"; $ntpcfg .= "# \n\n";
$ntpcfg .= "tinker panic 0 \n"; $ntpcfg .= "tinker panic 0 \n";
...@@ -1442,7 +1442,7 @@ function system_ntp_configure($start_ntpd = true) ...@@ -1442,7 +1442,7 @@ function system_ntp_configure($start_ntpd = true)
/* End PPS configuration */ /* End PPS configuration */
/* Add GPS 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']) && file_exists('/dev/'.$config['ntpd']['gps']['port'])
&& system_ntp_setup_gps($config['ntpd']['gps']['port'])) { && system_ntp_setup_gps($config['ntpd']['gps']['port'])) {
$ntpcfg .= "\n"; $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