From a59f7c090f33cc334a36eeaa92606866fb391253 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Mon, 25 Apr 2011 06:18:49 +0000 Subject: [PATCH] bug fixes and improvements --- inxi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index 56d3757..e5b365b 100755 --- a/inxi +++ b/inxi @@ -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++))