maybe driver for usb card?

This commit is contained in:
inxi-svn 2011-04-30 08:00:49 +00:00
parent 11a97ad73b
commit e1d3be49dd

4
inxi
View file

@ -3383,6 +3383,10 @@ get_network_advanced_data()
working_path="${working_path}${dir_path}" working_path="${working_path}${dir_path}"
fi fi
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 )
fi
if [[ -e $working_path/net ]];then if [[ -e $working_path/net ]];then
if_path=$( ls $working_path/net 2>/dev/null ) if_path=$( ls $working_path/net 2>/dev/null )