Levantar el puerto de red antes de correr ethtool
This commit is contained in:
parent
b7ed4d40e4
commit
ecb4d918e9
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ for DEV in \
|
||||||
| grep ':' \
|
| grep ':' \
|
||||||
| cut -d ':' -f 1`
|
| cut -d ':' -f 1`
|
||||||
do
|
do
|
||||||
|
ip link set $DEV up
|
||||||
MAC=`ethtool -P $DEV | cut -d ':' -f 2-9 | sed 's/\s\+//g'`
|
MAC=`ethtool -P $DEV | cut -d ':' -f 2-9 | sed 's/\s\+//g'`
|
||||||
#MAC=`cat /sys/class/net/$DEV/address`
|
#MAC=`cat /sys/class/net/$DEV/address`
|
||||||
if [[ "$MAC" != "00:00:00:00:00:00" ]] ; then
|
if [[ "$MAC" != "00:00:00:00:00:00" ]] ; then
|
||||||
|
|
Loading…
Reference in a new issue