summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan <khorivan@gmail.com>2020-05-01 22:45:36 +0300
committerGitHub <noreply@github.com>2020-05-01 21:45:36 +0200
commite3c9ae3c716ba1dfc63f44cd0c4ccf49739fd549 (patch)
tree3789a47f2f01020de55ef61dc3abaf26f49ee6fb
parenta1ed46a18a621008e36a3e6b26670f33ab031e0b (diff)
contrib/net-speed: extend interface list filter (#376)
1) Names incorporating Firmware/BIOS provided index numbers for on-board devices (example: eno1) 2) Names incorporating Firmware/BIOS provided PCI Express hotplug slot index numbers (example: ens1) 3) Names incorporating physical/geographical location of the connector of the hardware (example: enp2s0) 4) Names incorporating the interfaces's MAC address (example: enx78e7d1ea46da) 5) Classic, unpredictable kernel-native ethX naming (example: eth0) I've used usb/eth dongle with name enx..., and need only this one name, but extend filter to include other ones as well. Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> Co-authored-by: Orestis Floros <orestisflo@gmail.com>
-rwxr-xr-xcontrib/net-speed.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/net-speed.sh b/contrib/net-speed.sh
index ed41974..666a0e7 100755
--- a/contrib/net-speed.sh
+++ b/contrib/net-speed.sh
@@ -24,7 +24,7 @@
#
# Auto detect interfaces
-ifaces=$(ls /sys/class/net | grep -E '^(eth|wlan|enp|enx|wlp)')
+ifaces=$(ls /sys/class/net | grep -E '^(eno|enp|ens|enx|eth|wlan|wlp)')
last_time=0
last_rx=0