From b292565c20a73ff91b6b89481f99cf40517e0c6a Mon Sep 17 00:00:00 2001 From: glenda Date: Tue, 30 Aug 2011 04:57:27 -0400 Subject: [PATCH] cpurc: accept auth= key in sys= touple --- rc/bin/cpurc | 4 +++- rc/bin/troll | 0 2 files changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 rc/bin/troll 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}){ diff --git a/rc/bin/troll b/rc/bin/troll old mode 100644 new mode 100755