cpurc: accept auth= key in sys= touple
This commit is contained in:
parent
962ec8cfb1
commit
b292565c20
2 changed files with 3 additions and 1 deletions
|
@ -53,8 +53,10 @@ if(! ps|grep -s timesync){
|
||||||
sleep 2
|
sleep 2
|
||||||
}
|
}
|
||||||
|
|
||||||
if(~ $#auth 0)
|
if(~ $#auth 0){
|
||||||
|
auth=`{ndb/query sys $sysname auth}
|
||||||
. <{ndb/ipquery sys $sysname auth | sed 's, +,\n,g'}
|
. <{ndb/ipquery sys $sysname auth | sed 's, +,\n,g'}
|
||||||
|
}
|
||||||
switch($auth){
|
switch($auth){
|
||||||
case `{ echo $sysname; ndb/query sys $sysname dom
|
case `{ echo $sysname; ndb/query sys $sysname dom
|
||||||
for(i in `{awk '/u\ *$/{print $1}' /net/ipselftab}){
|
for(i in `{awk '/u\ *$/{print $1}' /net/ipselftab}){
|
||||||
|
|
0
rc/bin/troll
Normal file → Executable file
0
rc/bin/troll
Normal file → Executable file
Loading…
Reference in a new issue