boot: dont print errors if ethernet has no ifstats file, can happen with usb ethernet

This commit is contained in:
cinap_lenrek 2014-08-17 06:08:06 +02:00
parent 98e3e12d92
commit f128c6eab0

View file

@ -10,7 +10,7 @@ fn confignet{
# setup wifi encryption if any
if(~ $1 ether && ~ $service terminal && test -x /bin/aux/wpa){
if(grep -s '^status: need authentication' $2/ifstats){
if(grep -s '^status: need authentication' $2/ifstats >[2]/dev/null){
aux/wpa -p $2
}
}