diff options
author | Darren Embry <dse@webonastick.com> | 2012-06-07 15:05:22 -0400 |
---|---|---|
committer | Darren Embry <dse@webonastick.com> | 2012-06-07 15:16:34 -0400 |
commit | 3f63e8e20b000b2dc304579ea5f1aa14eb095cbd (patch) | |
tree | cac716856527f7b5626801f26a7cb3ccc77e4a18 /etc/rc.initial.setlanip | |
parent | ee2b3c1fd5f04e4899359428ef69939e7a7ba3a9 (diff) | |
download | pfsense-3f63e8e20b000b2dc304579ea5f1aa14eb095cbd.zip pfsense-3f63e8e20b000b2dc304579ea5f1aa14eb095cbd.tar.gz |
minor variable name change.
Diffstat (limited to 'etc/rc.initial.setlanip')
-rwxr-xr-x | etc/rc.initial.setlanip | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc.initial.setlanip b/etc/rc.initial.setlanip index eba151f..550fc39 100755 --- a/etc/rc.initial.setlanip +++ b/etc/rc.initial.setlanip @@ -83,11 +83,11 @@ $fp = fopen('php://stdin', 'r'); /* build an interface collection */ $ifdescrs = get_configured_interface_with_descr(false, true); -$j = count($ifdescrs); +$count = count($ifdescrs); /* grab interface that we will operate on, unless there is only one interface */ -if ($j > 1) { +if ($count > 1) { echo "Available interfaces:\n\n"; $x=1; foreach($ifdescrs as $iface) { @@ -97,12 +97,12 @@ if ($j > 1) { echo "\nEnter the number of the interface you wish to configure: "; $intnum = chop(fgets($fp)); } else { - $intnum = $j; + $intnum = $count; } if($intnum < 1) exit; -if($intnum > $j) +if($intnum > $count) exit; $index = 1; |