Fixed card number bug in networking

This commit is contained in:
inxi-svn 2008-11-04 02:29:11 +00:00
parent dc00445017
commit 17c4e56151

4
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash
########################################################################
#### Script Name: inxi
#### version: 0.3.11
#### version: 0.3.12
#### Date: November 3 2008
########################################################################
#### inxi is a fork of infobash, the original bash sys info script by locsmif
@ -1471,7 +1471,7 @@ print_networking_data()
if [ -n "${a_network_working[1]}" ];then
port_data=" ${C1}at port${C2} ${a_network_working[1]}"
fi
network_data="${C1}$card_one${C2}${a_network_working[0]}$port_data"
network_data="${C1}Card-$(( $i + 1 )) ${C2}${a_network_working[0]}$port_data"
network_data=$( create_print_line " " "$network_data" )
print_screen_output "$network_data"
done