From e3a13b00682d61838628570e6d634654bf7f34fd Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 29 Oct 2008 03:07:11 +0000 Subject: Add services_dhcp_server_enable which allows the DHCP server to be turned off easily. --- etc/inc/services.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'etc/inc/services.inc') diff --git a/etc/inc/services.inc b/etc/inc/services.inc index 559cdce..7bc11cb 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -42,6 +42,10 @@ function load_balancer_use_sticky() { function services_dhcpd_configure() { global $config, $g; + + if($g['services_dhcp_server_enable'] == false) + return; + if(isset($config['system']['developerspew'])) { $mt = microtime(); echo "services_dhcpd_configure($if) being called $mt\n"; @@ -1253,4 +1257,4 @@ function upnp_start() { } } -?> +?> \ No newline at end of file -- cgit v1.1