From baecf3a3148342ae94961e251c7f9c0c2992432a Mon Sep 17 00:00:00 2001 From: Sandino Araico Sanchez Date: Fri, 23 Dec 2016 04:15:51 -0600 Subject: [PATCH] set all net devices up --- scripts/stat-netdev | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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