Project

General

Profile

« Previous | Next » 

Revision ee1b024e

Added by Martin Fuchs almost 18 years ago

- correct behaviour of dhcpd.conf creation
- enable root-path

View differences:

etc/inc/services.inc
276 276
		if (is_array($dhcpifconf['ntpserver']) && $dhcpifconf['ntpserver'][0])
277 277
			$dhcpdconf .= "	option ntp-servers " . join(",", $dhcpifconf['ntpserver']) . ";\n";
278 278

  
279
		if (isset($dhcpifconf['tftp']))
279
		if ($dhcpifconf['tftp'] <> "")
280 280
			$dhcpdconf .= "	option tftp-server-name \"{$dhcpifconf['tftp']}\";\n";
281 281

  
282
		if (isset($dhcpifconf['ldap']))
282
    if ($dhcpifconf['ldap'] <> "")
283 283
			$dhcpdconf .= "	option ldap-server \"{$dhcpifconf['ldap']}\";\n";
284 284

  
285 285
		if(isset($dhcpifconf['netboot'])) {
......
287 287
				$dhcpdconf .= "	next-server {$dhcpifconf['next-server']};\n";
288 288
				$dhcpdconf .= "	filename \"{$dhcpifconf['filename']}\";\n";
289 289
			}
290
			if (($dhcpifconf['rootpathip'] <> "") && ($dhcpifconf['rootpath'] <> "")) {
291
				$dhcpdconf .= "	option root-path \"{$dhcpifconf['rootpathip']}:{$dhcpifconf['rootpath']}\";\n";
292
      }
290 293
		}
294
		
291 295
		$dhcpdconf .= <<<EOD
292 296
}
293 297

  

Also available in: Unified diff