From b0f2f4e47d6d728914a551e40a547302b098bc4d Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 24 Nov 2024 17:11:13 +0000 Subject: [PATCH] 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. --- sys/src/9/boot/net.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/9/boot/net.rc b/sys/src/9/boot/net.rc index d81291d56..4f2f64aab 100755 --- 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){