bug fixes and improvements

This commit is contained in:
inxi-svn 2011-04-25 06:18:49 +00:00
parent 28cae135c4
commit a59f7c090f

7
inxi
View file

@ -1276,6 +1276,7 @@ show_options()
print_screen_output " Not shown with -F for user security reasons, you shouldn't paste your local/wan IP."
print_screen_output "-I Show Information: processes, uptime, memory, irc client, inxi version."
print_screen_output "-l Show partition labels. Default: short partition -P. For full -p output, use: -pl (or -plu)."
print_screen_output "-n Show Advanced Network card information. Same as -Nnx. Shows interface, speed, mac id, state, etc."
print_screen_output "-N Show Network card information."
print_screen_output "-o Show unmounted partition information (includes UUID and LABEL if available)."
print_screen_output " Shows file system type if you have file installed, if you are root OR if you have"
@ -4925,7 +4926,7 @@ print_network_advanced_data()
if [[ -n ${a_network_working[9]} ]];then
mac_id=${a_network_working[9]}
fi
network_data="${C1}Net:${C2} $eth_id ${C1}State:${C2} $oper_state ${C1}Speed:${C2} $speed"
network_data="${C1}IF:${C2} $eth_id ${C1}State:${C2} $oper_state ${C1}Speed:${C2} $speed"
network_data="$network_data ${C1}Duplex:${C2} $duplex ${C1}Mac:${C2} $mac_id"
network_data=$( create_print_line " " "$network_data" )
print_screen_output "$network_data"
@ -4955,12 +4956,12 @@ print_networking_ip_data()
IFS="$ORIGINAL_IFS"
if [[ $i -lt 3 ]];then
if [[ -n ${a_interfaces_working[0]} ]];then
interfaces="$interfaces ${C1}${a_interfaces_working[0]}${C2} ${a_interfaces_working[1]}"
interfaces="$interfaces ${a_interfaces_working[0]} ${C1}IP:${C2} ${a_interfaces_working[1]}"
fi
else
if [[ -n ${a_interfaces_working[0]} ]];then
# space on end here for lining up with line starter
interfaces_2="$interfaces_2${C1}${a_interfaces_working[0]}${C2} ${a_interfaces_working[1]} "
interfaces_2="$interfaces_2${a_interfaces_working[0]} ${C1}IP:${C2} ${a_interfaces_working[1]} "
fi
fi
((i++))