From ecb4d918e93528b11c04c38f01cfa9a4c8e04d97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandino=20Araico=20S=C3=A1nchez?= Date: Mon, 5 Jul 2021 00:38:50 -0500 Subject: [PATCH] Levantar el puerto de red antes de correr ethtool --- scripts/scan-netdev | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/scan-netdev b/scripts/scan-netdev index 3a7aa5c..ecaa231 100755 --- a/scripts/scan-netdev +++ b/scripts/scan-netdev @@ -11,6 +11,7 @@ for DEV in \ | grep ':' \ | cut -d ':' -f 1` do + ip link set $DEV up MAC=`ethtool -P $DEV | cut -d ':' -f 2-9 | sed 's/\s\+//g'` #MAC=`cat /sys/class/net/$DEV/address` if [[ "$MAC" != "00:00:00:00:00:00" ]] ; then