tweaked it to add driver data also if usb was found for networking, that way it doesn't always run.

New version number
This commit is contained in:
inxi-svn 2011-04-30 08:28:58 +00:00
parent ce6ddd1653
commit 82e074c027

11
inxi
View file

@ -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