set all net devices up
This commit is contained in:
parent
1c7cd62c38
commit
baecf3a314
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue