summaryrefslogtreecommitdiff
path: root/rc/bin/cpurc
diff options
context:
space:
mode:
authorglenda <glenda@flatboxold.9hal>2011-08-30 04:57:27 -0400
committerglenda <glenda@flatboxold.9hal>2011-08-30 04:57:27 -0400
commitb292565c20a73ff91b6b89481f99cf40517e0c6a (patch)
tree8667f49d4bec8b6429067aa0578df777461b1349 /rc/bin/cpurc
parent962ec8cfb1bb33f8eefaee5520e88fbee699ff2e (diff)
downloadplan9front-b292565c20a73ff91b6b89481f99cf40517e0c6a.tar.xz
cpurc: accept auth= key in sys= touple
Diffstat (limited to 'rc/bin/cpurc')
-rwxr-xr-xrc/bin/cpurc4
1 files changed, 3 insertions, 1 deletions
diff --git a/rc/bin/cpurc b/rc/bin/cpurc
index afd888a2e..3838256eb 100755
--- a/rc/bin/cpurc
+++ b/rc/bin/cpurc
@@ -53,8 +53,10 @@ if(! ps|grep -s timesync){
sleep 2
}
-if(~ $#auth 0)
+if(~ $#auth 0){
+ auth=`{ndb/query sys $sysname auth}
. <{ndb/ipquery sys $sysname auth | sed 's, +,\n,g'}
+}
switch($auth){
case `{ echo $sysname; ndb/query sys $sysname dom
for(i in `{awk '/u\ *$/{print $1}' /net/ipselftab}){