git: 9front

Download patch

ref: ed11c46f4bd8bf0b20e4a997d8f1162789aee6ae
parent: 8993e92b10069a02932bb8a25bae70f07342be9a
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){
--