mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
tweaks
This commit is contained in:
parent
57a7600bdc
commit
ba8970db1b
1
inxi
1
inxi
|
@ -3364,6 +3364,7 @@ get_network_advanced_data()
|
|||
usb_vendor=$( cut -d ':' -f 1 <<< ${a_network_adv_working[4]} )
|
||||
usb_product=$( cut -d ':' -f 2 <<< ${a_network_adv_working[4]} )
|
||||
# this grep returns the path plus the contents of the file, with a colon separator, so slice that off
|
||||
# /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/idVendor
|
||||
working_path=$( grep -s "$usb_vendor" /sys/devices/pci*/*/usb*/*/*/idVendor | sed -e "s/idVendor:$usb_vendor//" -e '/driver/d' )
|
||||
product_path=$( grep -s "$usb_product" /sys/devices/pci*/*/usb*/*/*/idProduct | sed -e "s/idProduct:$usb_product//" -e '/driver/d' )
|
||||
# make sure it's the right product/vendor match here, it will almost always be but let's be sure
|
||||
|
|
Loading…
Reference in a new issue