Correctly deterimine if a optional interface should be using dhcp

This commit is contained in:
Scott Ullrich 2005-07-31 03:57:02 +00:00
parent 53c4e9aa77
commit d3ce564b98

View File

@ -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']) . " " .