From 3c5dcc1b1a4af1300882b2e0a785147ae94878d2 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Fri, 21 Nov 2008 02:14:10 +0000 Subject: [PATCH] fixes and twaeks --- inxi | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/inxi b/inxi index 25e9bba..339f00d 100755 --- a/inxi +++ b/inxi @@ -1028,8 +1028,6 @@ get_audio_data() #/^[0-9a-f:.]+ (ethernet|network) (controller|bridge)/ || /^[0-9a-f:.]+ [^:]+: .*(ethernet|network).*$/ { /multimedia audio controller|audio device/ { audioCard=gensub(/^[0-9a-f:.]+ [^:]+: (.+)$/,"\\1","g",$0) - gsub(/realtek semiconductor/, "Realtek", audioCard) - gsub(/davicom semiconductor/, "Davicom", audioCard) # The doublequotes are necessary because of the pipes in the variable. gsub(/'"$BAN_LIST_NORMAL"'/, "", audioCard) gsub(/,/, " ", audioCard) @@ -1906,7 +1904,7 @@ get_networking_data() ports[nic] = ports[nic] $4 " " } if (/driver in use/) { - drivers[nic] = drivers[nic] gensub(/(.*): (.*)/,"\\2","g",$0) " " + drivers[nic] = drivers[nic] gensub(/(.*): (.*)/,"\\2","g",$0) "" } } } @@ -2562,7 +2560,7 @@ print_networking_data() driver_data=" ${C1}driver${C2} ${a_network_working[1]}" fi if [[ -n ${a_network_working[2]} && $B_EXTRA_DATA == 'true' ]];then - port_data="${C1}at port${C2} ${a_network_working[2]}" + port_data=" ${C1}at port${C2} ${a_network_working[2]}" fi network_data="${C1}$card_one${C2}${a_network_working[0]}$driver_data$port_data" network_data=$( create_print_line "Network:" "$network_data" ) @@ -2579,7 +2577,7 @@ print_networking_data() driver_data=" ${C1}driver${C2} ${a_network_working[1]}" fi if [[ -n ${a_network_working[2]} && $B_EXTRA_DATA == 'true' ]];then - port_data="${C1}at port${C2} ${a_network_working[2]}" + port_data=" ${C1}at port${C2} ${a_network_working[2]}" fi network_data="${C1}Card-$(( $i + 1 )) ${C2}${a_network_working[0]}$driver_data$port_data" network_data=$( create_print_line " " "$network_data" )