more fixes

This commit is contained in:
inxi-svn 2011-04-25 07:05:24 +00:00
parent 61f3d09376
commit c44eb201f0

3
inxi
View file

@ -4946,7 +4946,6 @@ print_networking_ip_data()
ip_data=$( create_print_line " " "${C1}Wan IP:${C2} $ip" )
# then create the list of local interface/ip
interfaces=" ${C1}Interface:${C2}"
i=0 ## loop starts with 1 by auto-increment so it only shows cards > 1
while [[ -n ${A_INTERFACES_DATA[i]} ]]
do
@ -4955,7 +4954,7 @@ print_networking_ip_data()
IFS="$ORIGINAL_IFS"
if [[ $i -lt 3 ]];then
if [[ -n ${a_interfaces_working[0]} ]];then
interfaces="$interfaces ${a_interfaces_working[0]} ${C1}IP:${C2} ${a_interfaces_working[1]}"
interfaces="$interfaces ${C1}IF:${C2} ${a_interfaces_working[0]} ${C1}IP:${C2} ${a_interfaces_working[1]}"
fi
else
if [[ -n ${a_interfaces_working[0]} ]];then