diff --git a/scripts/stat-netdev b/scripts/stat-netdev index 9d3f83e..60844c4 100755 --- a/scripts/stat-netdev +++ b/scripts/stat-netdev @@ -9,6 +9,15 @@ check_listed_mac () { fi } +for DEV in \ + `cat /proc/net/dev \ + | grep -v 'lo:' \ + | grep ':' \ + | cut -d ':' -f 1` +do + ip link set $DEV up +done +sleep 1 while [[ 1 ]] ; do clear date @@ -46,7 +55,7 @@ while [[ 1 ]] ; do STILL_THERE=`cat /proc/net/dev | grep $DEV` if [[ -z $STILL_THERE ]] ; then echo "$BLD$DEV$OFF $RES_ERROR: Device missing" - check_listed_mac + #check_listed_mac fi done sleep 2