From 38ef50650a7e08b7bb939ee24309ef30234533b5 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Fri, 20 Mar 2015 08:51:56 +0100 Subject: [PATCH] small fix in NTP start --- src/etc/inc/system.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc index 5952cde4e..cfa32472e 100644 --- a/src/etc/inc/system.inc +++ b/src/etc/inc/system.inc @@ -1388,7 +1388,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"; @@ -1442,7 +1442,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";