mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
another bug fix
This commit is contained in:
parent
7c55077cf0
commit
5abe728d51
2
inxi
2
inxi
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue