summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-31 03:57:02 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-31 03:57:02 +0000
commitd3ce564b9896e4e67af44cc23238abca0bbbe5d3 (patch)
treeffa014579b6db05c14566baaeb3752e9fd460288 /etc/inc/interfaces.inc
parent53c4e9aa77b46cd553944da7d795688261546cae (diff)
downloadpfsense-d3ce564b9896e4e67af44cc23238abca0bbbe5d3.zip
pfsense-d3ce564b9896e4e67af44cc23238abca0bbbe5d3.tar.gz
Correctly deterimine if a optional interface should be using dhcp
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 3b94989..cb35aa9 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -261,7 +261,7 @@ function interfaces_optional_configure_if($opti) {
$bridges_total++;
} else {
/* if user has selected DHCP type then act accordingly */
- if($optcfg['type'] == 'DHCP') {
+ if($optcfg['ipaddr'] == "dhcp") {
interfaces_opt_dhcp_configure($opti);
} else {
mwexec("/sbin/ifconfig " . escapeshellarg($optcfg['if']) . " " .
OpenPOWER on IntegriCloud