]> git.lizzy.rs Git - plan9front.git/commitdiff
cpurc: accept auth= key in sys= touple
authorglenda <glenda@flatboxold.9hal>
Tue, 30 Aug 2011 08:57:27 +0000 (04:57 -0400)
committerglenda <glenda@flatboxold.9hal>
Tue, 30 Aug 2011 08:57:27 +0000 (04:57 -0400)
rc/bin/cpurc
rc/bin/troll [changed mode: 0644->0755]

index afd888a2e8931f0f5db1b0b3b50107780c08201f..3838256eb155f6c3e8503af6507511d9c29e294b 100755 (executable)
@@ -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}){
old mode 100644 (file)
new mode 100755 (executable)