diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-04-10 15:01:09 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-04-10 15:01:09 +0200 |
commit | 5d0c3ab7df27403796b07e09ae74558083ce8a61 (patch) | |
tree | 9186aef021339de243e02ecc9b45a2c68ae75c3c /rc | |
parent | 5e040b3a2bdc88eecc2465c181cb2d9f25b415dd (diff) | |
download | plan9front-5d0c3ab7df27403796b07e09ae74558083ce8a61.tar.xz |
termrc, cpurc: silence /net/ether* error message when there are no ethernet devices
Diffstat (limited to 'rc')
-rwxr-xr-x | rc/bin/cpurc | 2 | ||||
-rwxr-xr-x | rc/bin/termrc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/rc/bin/cpurc b/rc/bin/cpurc index 6a348b833..0d078cb5b 100755 --- a/rc/bin/cpurc +++ b/rc/bin/cpurc @@ -59,7 +59,7 @@ if(test -r /net/ipselftab){ addrs=`{ndb/query -a sys $sysname ether} if(! ~ $#addrs 0){ for(ether in /net/ether*){ - addr=`{cat $ether/addr} + addr=`{cat $ether/addr >[2]/dev/null} switch($addr){ case $addrs # try /lib/ndb first, then do dhcp/slaac diff --git a/rc/bin/termrc b/rc/bin/termrc index ca5af3442..082cb63b3 100755 --- a/rc/bin/termrc +++ b/rc/bin/termrc @@ -60,7 +60,7 @@ if(test -r /net/ipselftab){ addrs=`{ndb/query -a sys $sysname ether} if(! ~ $#addrs 0){ for(ether in /net/ether*){ - addr=`{cat $ether/addr} + addr=`{cat $ether/addr >[2]/dev/null} switch($addr){ case $addrs # try /lib/ndb first, then do dhcp/slaac |