lundi 28 juillet 2014

Script to test if ethernet interface eth3 is up

#!/bin/bash
var="down"
while [[ $var != "up" ]]
do
    var=$(</sys/class/net/eth3/operstate )
    echo $var
done

Aucun commentaire:

Enregistrer un commentaire