set all net devices up

This commit is contained in:
Sandino Araico Sanchez 2016-12-23 04:15:51 -06:00
parent 1c7cd62c38
commit baecf3a314

View file

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