summaryrefslogtreecommitdiff
path: root/sys/src/9/boot
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-08-17 06:08:06 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2014-08-17 06:08:06 +0200
commitf128c6eab00bb4ebb40d0afddf7824e5bc2e179a (patch)
tree16e12b1d4a04304d2dd079e2915f19874cb02dcc /sys/src/9/boot
parent98e3e12d928c702ef8beb3846097b61b1f13a6a3 (diff)
boot: dont print errors if ethernet has no ifstats file, can happen with usb ethernet
Diffstat (limited to 'sys/src/9/boot')
-rwxr-xr-xsys/src/9/boot/net.rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/boot/net.rc b/sys/src/9/boot/net.rc
index c048eda8d..8cb05e76b 100755
--- a/sys/src/9/boot/net.rc
+++ b/sys/src/9/boot/net.rc
@@ -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
}
}