Project

General

Profile

« Previous | Next » 

Revision 3084ba6e

Added by Ermal LUÇI over 12 years ago

Teach dhcpd_configure about family optional parameter and use it to properly setup dhcpv6 on track6 case so that config is properly written

View differences:

etc/inc/services.inc
294 294
	return 0;
295 295
}
296 296

  
297
function services_dhcpd_configure() {
297
function services_dhcpd_configure($family = "all") {
298 298
	global $config, $g;
299 299

  
300 300
	/* configure DHCPD chroot once */
......
319 319
	fclose($fd);
320 320
	mwexec("/bin/sh {$g['tmp_path']}/dhcpd.sh");
321 321

  
322
	services_dhcpdv4_configure();
323
	services_dhcpdv6_configure();
324
	services_radvd_configure();
322
	if ($family == "all" || $family == "inet")
323
		services_dhcpdv4_configure();
324
	if ($family == "all" || $family == "inet6") {
325
		services_dhcpdv6_configure();
326
		services_radvd_configure();
327
	}
328

  
325 329
	return;
326 330

  
327 331
}

Also available in: Unified diff