Project

General

Profile

« Previous | Next » 

Revision 9c98515d

Added by Chris Buechler over 17 years ago

Partially fix assignment of only WAN at console interface assignment.

Single interface support
Appliance Project

View differences:

etc/inc/config.inc
1480 1480
	} while (!$wanif);
1481 1481

  
1482 1482
	do {
1483
		echo "\nEnter the LAN interface name or 'a' for auto-detection: ";
1483
		echo "\nEnter the LAN interface name or 'a' for auto-detection \n" .
1484
			"(or nothing if finished): ";
1484 1485
		$lanif = chop(fgets($fp));
1485
		if ($lanif === "") {
1486
			fclose($fp);
1487
			return;
1488
		}
1489

  
1486
		
1490 1487
		if($lanif == "exit") {
1491 1488
			exit;
1492 1489
		}
......
1494 1491
		if($lanif == "") {
1495 1492
			if($g['minimum_nic_count'] < 2) {
1496 1493
				unset($config['interfaces']['lan']);
1497
				break;			
1494
				break;	
1495
			} else {
1496
				fclose($fp);
1497
				return;
1498 1498
			}
1499 1499
		}
1500 1500

  
......
1559 1559
		}
1560 1560
	}
1561 1561

  
1562
	echo <<<EOD
1563

  
1564
The interfaces will be assigned as follows:
1565

  
1566
LAN  -> {$lanif}
1567
WAN  -> {$wanif}
1568

  
1569
EOD;
1562
	echo "The interfaces will be assigned as follows: \n\n";
1570 1563

  
1564
	if ($lanif != "")
1565
		echo "LAN  ->" . $lanif . "\n";
1566
	echo "WAN  ->" . $wanif . "\n";
1571 1567
	for ($i = 0; $i < count($optif); $i++) {
1572 1568
		echo "OPT" . ($i+1) . " -> " . $optif[$i] . "\n";
1573 1569
	}

Also available in: Unified diff