From 82e074c02790582d453baf1c974336e819c134ea Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Sat, 30 Apr 2011 08:28:58 +0000 Subject: [PATCH] tweaked it to add driver data also if usb was found for networking, that way it doesn't always run. New version number --- inxi | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index 475ad73..0cf9fc5 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 1.4.90 +#### version: 1.4.91 #### Date: April 30 2011 ######################################################################## #### SPECIAL THANKS @@ -3218,6 +3218,8 @@ get_networking_data() { eval $LOGFS + local b_usb_networking='false' + IFS=$'\n' A_NETWORK_DATA=( $( echo "$Lspci_Data" | gawk ' BEGIN { @@ -3333,14 +3335,17 @@ get_networking_data() IFS="," A_NETWORK_DATA[$array_count]="$array_string" IFS="$ORIGINAL_IFS" + # need this to get the driver data for -N regular output, but no need + # to run the advanced stuff unless required + b_usb_networking='true' fi fi fi -# if [[ $B_SHOW_ADVANCED_NETWORK == 'true' ]];then + if [[ $B_SHOW_ADVANCED_NETWORK == 'true' || $b_usb_networking == 'true' ]];then get_network_advanced_data -# fi + fi log_function_data "A_NETWORK_DATA: ${A_NETWORK_DATA[@]}" eval $LOGFE