new version, with usb networking driver output now

This commit is contained in:
inxi-svn 2011-04-30 08:06:01 +00:00
parent e1d3be49dd
commit c1d5ed8169

11
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash
########################################################################
#### Script Name: inxi
#### version: 1.4.89
#### version: 1.4.90
#### Date: April 30 2011
########################################################################
#### SPECIAL THANKS
@ -3349,9 +3349,9 @@ get_networking_data()
get_network_advanced_data()
{
eval $LOGFS
local a_network_adv_working='' if_path='' working_path=''
local a_network_adv_working='' if_path='' working_path='' dir_path=''
local if_id='' speed='' duplex='' mac_id='' oper_state=''
local usb_vendor='' usb_product='' product_path=''
local usb_data='' usb_vendor='' usb_product='' product_path='' driver_test=''
for (( i=0; i < ${#A_NETWORK_DATA[@]}; i++ ))
do
@ -3384,8 +3384,9 @@ get_network_advanced_data()
fi
fi
# /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/uevent grep for DRIVER=
if [[ -n $( grep -si 'DRIVER=' $working_path/uevent | cut -d '=' -f 2 ) ]];then
a_network_adv_working[1]=$( grep -si 'DRIVER=' $working_path/uevent | cut -d '=' -f 2 )
driver_test=$( grep -si 'DRIVER=' $working_path/uevent | cut -d '=' -f 2 )
if [[ -n $driver_test ]];then
a_network_adv_working[1]=$driver_test
fi
if [[ -e $working_path/net ]];then