ref: f3bead887448384a5c325fcbda260ab777271f70
parent: 40910eed4f8e70d7b5ef6412570f24239a81ad0b
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Dec 4 16:56:13 EST 2019
9/boot/net.rc: suppress error from grep if ethernet ifstats file is not found this can happen with nusb/ether, which does not implement ifstats file.
--- a/sys/src/9/boot/net.rc
+++ b/sys/src/9/boot/net.rc
@@ -10,7 +10,7 @@
# setup wifi encryption if any
if(~ $1 ether && test -x /bin/aux/wpa){- essid=`{grep '^essid: ' $2/ifstats | sed 's/^essid: //; q'}+ essid=`{grep '^essid: ' $2/ifstats >[2]/dev/null | sed 's/^essid: //; q'} if(! ~ $#essid 0){ if(! ~ $#wpapsk 0 || grep -s '^status: need authentication' $2/ifstats >[2]/dev/null){x=(aux/wpa -s $"essid)
--
⑨