summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial.setlanip
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-10-29 03:07:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-10-29 03:07:11 +0000
commite3a13b00682d61838628570e6d634654bf7f34fd (patch)
treed9892a7a62d625a6451d6cb7438a29c6839432e2 /etc/rc.initial.setlanip
parentbc8472b77ae3acaf52fcd37e86959cad4676425d (diff)
downloadpfsense-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-xetc/rc.initial.setlanip5
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
OpenPOWER on IntegriCloud