diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2007-05-08 14:47:07 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2007-05-08 14:47:07 +0000 |
commit | ad1719997b25299696078eb7c2d8329d8bc8f84d (patch) | |
tree | e2c9b54b50040dbdb787f3b1e6a9ceb43d35379c /etc/inc/services.inc | |
parent | 232d6540f9ceaf0c67b2ec500d15223eb63fc7f1 (diff) | |
download | pfsense-ad1719997b25299696078eb7c2d8329d8bc8f84d.zip pfsense-ad1719997b25299696078eb7c2d8329d8bc8f84d.tar.gz |
Add NTP server field to dhcp config.
From: Alexander Schaber
Diffstat (limited to 'etc/inc/services.inc')
-rw-r--r-- | etc/inc/services.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc index 341f00f..a95e22a 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -264,6 +264,9 @@ EOD; $dhcpdconf .= " option netbios-node-type 8;\n"; } + if (is_array($dhcpifconf['ntpserver']) && $dhcpifconf['ntpserver'][0]) + $dhcpdconf .= " option ntp-servers " . join(",", $dhcpifconf['ntpserver']) . ";\n"; + if(isset($dhcpifconf['netboot'])) { if (($dhcpifconf['next-server'] <> "") && ($dhcpifconf['filename'] <> "")) { $dhcpdconf .= " next-server {$dhcpifconf['next-server']};\n"; |