another bug fix

This commit is contained in:
inxi-svn 2012-10-19 05:52:13 +00:00
parent 7c55077cf0
commit 5abe728d51

2
inxi
View file

@ -4871,7 +4871,7 @@ get_network_advanced_data()
# working_path=$( ls /sys/devices/pci*/*/0000:${a_network_adv_working[4]}/net/*/uevent )
else
# slice off the usb- part
usb_data=$( cut -d '-' -f 2-4 <<< ${a_network_adv_working[4]} )
usb_data=$( cut -d '-' -f 2-4 <<< ${a_network_adv_working[10]} )
usb_vendor=$( cut -d ':' -f 1 <<< $usb_data )
usb_product=$( cut -d ':' -f 2 <<< $usb_data )
# this grep returns the path plus the contents of the file, with a colon separator, so slice that off