Levantar el puerto de red antes de correr ethtool

This commit is contained in:
Sandino Araico Sánchez 2021-07-05 00:38:50 -05:00
parent b7ed4d40e4
commit ecb4d918e9

View file

@ -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