mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
more fixes
This commit is contained in:
parent
61f3d09376
commit
c44eb201f0
3
inxi
3
inxi
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue