Project

General

Profile

« Previous | Next » 

Revision 3f63e8e2

Added by Darren Embry about 13 years ago

minor variable name change.

View differences:

etc/rc.initial.setlanip
83 83

  
84 84
/* build an interface collection */
85 85
$ifdescrs = get_configured_interface_with_descr(false, true);
86
$j = count($ifdescrs);
86
$count = count($ifdescrs);
87 87
	
88 88
/* grab interface that we will operate on, unless there is only one
89 89
   interface */
90
if ($j > 1) {
90
if ($count > 1) {
91 91
	echo "Available interfaces:\n\n";
92 92
	$x=1;
93 93
	foreach($ifdescrs as $iface) {
......
97 97
	echo "\nEnter the number of the interface you wish to configure: ";
98 98
	$intnum = chop(fgets($fp));	
99 99
} else {
100
	$intnum = $j;
100
	$intnum = $count;
101 101
}
102 102
	
103 103
if($intnum < 1) 
104 104
	exit;
105
if($intnum > $j)
105
if($intnum > $count)
106 106
	exit;
107 107
		
108 108
$index = 1;

Also available in: Unified diff