shithub: front

Download patch

ref: b0f2f4e47d6d728914a551e40a547302b098bc4d
parent: a77fd25d909aade802f49d206d4822798c563efe
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Nov 24 12:11:13 EST 2024

boot/net.rc: redirect grep error to /dev/null

Usb ethernet driver does not serve ifstats file,
so avoid this error showing up on the console.

--- a/sys/src/9/boot/net.rc
+++ b/sys/src/9/boot/net.rc
@@ -1,7 +1,7 @@
 #!/bin/rc
 
 fn wifi{
-	if(grep -s '^essid: ' $1/ifstats){
+	if(grep -s '^essid: ' $1/ifstats >[2]/dev/null){
 		if(~ $#essid 0)
 			essid=`{grep '^essid: ' $1/ifstats >[2]/dev/null | sed 's/^essid: //; q'}
 		if(! ~ $#essid 0){
--