summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorreuben honigwachs <reuben@honigwachs.de>2020-04-01 23:32:49 +0200
committerGitHub <noreply@github.com>2020-04-01 23:32:49 +0200
commit33ba83e76e1931b0941207655cb1d973e20f0c28 (patch)
tree54a1e3f2771bbc040c582835c52b4d4797eb64d5
parentb4c1bb97afea8213da63867f2a7849e0d0db43a6 (diff)
Update net-speed.sh
Added the common prefix `enx` as possible string for interface detection. See https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
-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 71a563f..ed41974 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|wlp)')
+ifaces=$(ls /sys/class/net | grep -E '^(eth|wlan|enp|enx|wlp)')
last_time=0
last_rx=0