mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
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.
This commit is contained in:
parent
a77fd25d90
commit
b0f2f4e47d
1 changed files with 1 additions and 1 deletions
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue