From d3ce564b9896e4e67af44cc23238abca0bbbe5d3 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 31 Jul 2005 03:57:02 +0000 Subject: [PATCH] Correctly deterimine if a optional interface should be using dhcp --- etc/inc/interfaces.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 3b949899d9..cb35aa96d1 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']) . " " .