diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-10-29 03:07:11 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-10-29 03:07:11 +0000 |
commit | e3a13b00682d61838628570e6d634654bf7f34fd (patch) | |
tree | d9892a7a62d625a6451d6cb7438a29c6839432e2 /etc/rc.initial.setlanip | |
parent | bc8472b77ae3acaf52fcd37e86959cad4676425d (diff) | |
download | pfsense-e3a13b00682d61838628570e6d634654bf7f34fd.zip pfsense-e3a13b00682d61838628570e6d634654bf7f34fd.tar.gz |
Add services_dhcp_server_enable which allows the DHCP server to be turned
off easily.
Diffstat (limited to 'etc/rc.initial.setlanip')
-rwxr-xr-x | etc/rc.initial.setlanip | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/rc.initial.setlanip b/etc/rc.initial.setlanip index 3d81e7c..bd536dd 100755 --- a/etc/rc.initial.setlanip +++ b/etc/rc.initial.setlanip @@ -136,7 +136,8 @@ $config['interfaces'][$interface]['ipaddr'] = $intip; $config['interfaces'][$interface]['subnet'] = $intbits; - $yn = prompt_for_enable_dhcp_server(); + if($g['services_dhcp_server_enable']) + $yn = prompt_for_enable_dhcp_server(); // TODO: Add DHCP IPv6 support if ($yn == "y") { @@ -237,4 +238,4 @@ fgets($fp); fclose($fp); -?> +?>
\ No newline at end of file |