termrc, cpurc: silence /net/ether* error message when there are no ethernet devices
This commit is contained in:
parent
5e040b3a2b
commit
5d0c3ab7df
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue