diff options
author | Daniel Stefan Haischt <dsh@pfsense.org> | 2007-01-15 18:00:49 +0000 |
---|---|---|
committer | Daniel Stefan Haischt <dsh@pfsense.org> | 2007-01-15 18:00:49 +0000 |
commit | 79c11d149484d919457c4b719da51b88a0fc5151 (patch) | |
tree | df90f4e5cf9ff75898bc1ca3d0d4e9606a1fd56e /packages | |
parent | 76a712084540d5654911c6ee6cf1a2b930894a3e (diff) | |
download | pfsense-packages-79c11d149484d919457c4b719da51b88a0fc5151.tar.gz pfsense-packages-79c11d149484d919457c4b719da51b88a0fc5151.tar.bz2 pfsense-packages-79c11d149484d919457c4b719da51b88a0fc5151.zip |
* announce ntp service type via zeroconf
Diffstat (limited to 'packages')
-rw-r--r-- | packages/freenas/pkg/freenas_services.inc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/freenas/pkg/freenas_services.inc b/packages/freenas/pkg/freenas_services.inc index 184be1ec..5c206413 100644 --- a/packages/freenas/pkg/freenas_services.inc +++ b/packages/freenas/pkg/freenas_services.inc @@ -1621,6 +1621,24 @@ EOD; file_put_contents("/usr/local/etc/avahi/services/rsync.service", $rsyncservice); } // end if + + /* add ntp service type */ + if ($config['ntpd']['mode'] == "server") { + $ntpdservice = str_replace("@PORT@", + "123", + $service_template); + $ntpdservice = str_replace("@TYPE@", + "_ntp._udp", + $ntpdservice); + $ntpdservice = str_replace("@SERVICE_DESC@", + "Network Time Daemon", + $ntpdservice); + $ntpdservice = str_replace("@TXT_RECORDS@", + "", + $ntpdservice); + + file_put_contents("/usr/local/etc/avahi/services/ntpd.service", $ntpdservice); + } // end if if (isset($config['system']['ssh']['enable'])) { $sshservice = str_replace("@PORT@", |