mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
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:
parent
ce6ddd1653
commit
82e074c027
11
inxi
11
inxi
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 1.4.90
|
#### version: 1.4.91
|
||||||
#### Date: April 30 2011
|
#### Date: April 30 2011
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
|
@ -3218,6 +3218,8 @@ get_networking_data()
|
||||||
{
|
{
|
||||||
eval $LOGFS
|
eval $LOGFS
|
||||||
|
|
||||||
|
local b_usb_networking='false'
|
||||||
|
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
A_NETWORK_DATA=( $( echo "$Lspci_Data" | gawk '
|
A_NETWORK_DATA=( $( echo "$Lspci_Data" | gawk '
|
||||||
BEGIN {
|
BEGIN {
|
||||||
|
@ -3333,14 +3335,17 @@ get_networking_data()
|
||||||
IFS=","
|
IFS=","
|
||||||
A_NETWORK_DATA[$array_count]="$array_string"
|
A_NETWORK_DATA[$array_count]="$array_string"
|
||||||
IFS="$ORIGINAL_IFS"
|
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
|
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
|
get_network_advanced_data
|
||||||
# fi
|
fi
|
||||||
log_function_data "A_NETWORK_DATA: ${A_NETWORK_DATA[@]}"
|
log_function_data "A_NETWORK_DATA: ${A_NETWORK_DATA[@]}"
|
||||||
|
|
||||||
eval $LOGFE
|
eval $LOGFE
|
||||||
|
|
Loading…
Reference in a new issue