Add support to view Vendor & Device name for list Network Interfaces
Opened this issue · 1 comments
Right now information looks like
Network Interfaces
mac: f4:0f:24:2d:97:c5
name: en0
ip: fe80::1c8b:29f5:86c7:9249
ip: 192.168.1.28
Must be fetched from Vendor & Device ID:
Network Interfaces
mac: f4:0f:24:2d:97:c5
Card Type: AirPort Extreme (0x14E4, 0x157)
Firmware Version: Broadcom BCM43xx 1.0 (7.77.37.31.1a9)
name: en0
ip: fe80::1c8b:29f5:86c7:9249
ip: 192.168.1.28
list of interfaces :
find /sys/class/net -type l -not -lname 'virtual' -printf '%f\n'
about info:
cat /sys/class/net/wlan0/device/uevent
DEVTYPE=usb_interface
DRIVER=smsc95xx
PRODUCT=424/ec00/200
TYPE=255/0/1
INTERFACE=255/0/255
MODALIAS=usb:v0424pEC00d0200dcFFdsc00dp01icFFisc00ipFFin00
DRIVER=brcmfmac
SDIO_CLASS=00
SDIO_ID=02D0:A9A6
MODALIAS=sdio:c00v02D0dA9A6
need to think how to easier map ID to something readable