Update net-speed.sh

Added the common prefix `enx` as possible string for interface detection. See https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
This commit is contained in:
reuben honigwachs 2020-04-01 23:32:49 +02:00 committed by GitHub
parent b4c1bb97af
commit 33ba83e76e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@
# #
# Auto detect interfaces # 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_time=0
last_rx=0 last_rx=0