boot: dont print errors if ethernet has no ifstats file, can happen with usb ethernet
This commit is contained in:
parent
98e3e12d92
commit
f128c6eab0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue