cpurc: handle case with missing /net/ipselftab

This commit is contained in:
cinap_lenrek 2011-10-08 02:29:09 +02:00
parent fe60a74122
commit 8e4e1e5730

View file

@ -60,9 +60,10 @@ if(~ $#auth 0){
}
switch($auth){
case `{ echo $sysname; ndb/query sys $sysname dom
if(test -r /net/ipselftab){
for(i in `{awk '/u\ *$/{print $1}' /net/ipselftab}){
echo $i; ndb/ipquery ip $i dom; ndb/ipquery ip $i sys
} | sed 's,[^ ]+=,,g'}
} | sed 's,[^ ]+=,,g'}}
# cpu+auth server
auth/keyfs -wp -m /mnt/keys /adm/keys
aux/listen -q -t /rc/bin/service.auth -d /rc/bin/service tcp