termrc, cpurc: silence /net/ether* error message when there are no ethernet devices

This commit is contained in:
cinap_lenrek 2021-04-10 15:01:09 +02:00
parent 5e040b3a2b
commit 5d0c3ab7df
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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