summaryrefslogtreecommitdiff
path: root/rc/bin/cpurc
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@centraldogma>2011-06-09 07:35:31 +0000
committercinap_lenrek <cinap_lenrek@centraldogma>2011-06-09 07:35:31 +0000
commit1da0722fe5d04aff561a2917e9642dc7c3909dd4 (patch)
treef8f18f1ab2f0889f525e12baee2393ef23a89a6a /rc/bin/cpurc
parent4fab38b740ca18d85403d570e26953aef54f70b8 (diff)
downloadplan9front-1da0722fe5d04aff561a2917e9642dc7c3909dd4.tar.xz
add /net/ndb to default ndb database files, fix mistakes
Diffstat (limited to 'rc/bin/cpurc')
-rwxr-xr-xrc/bin/cpurc11
1 files changed, 4 insertions, 7 deletions
diff --git a/rc/bin/cpurc b/rc/bin/cpurc
index 0c8c8beb1..bd3e6c96d 100755
--- a/rc/bin/cpurc
+++ b/rc/bin/cpurc
@@ -44,7 +44,7 @@ if(! test -e /srv/dns)
if(! ps|grep -s timesync){
if(~ $#ntp 0)
- eval `{ndb/ipquery sys $sysname ntp}
+ . <{ndb/ipquery sys $sysname ntp | sed 's, +,\n,g'}
if(~ $#ntp 0)
ntp=pool.ntp.org
aux/timesync -n $ntp
@@ -52,7 +52,7 @@ if(! ps|grep -s timesync){
}
if(~ $#auth 0)
- eval `{ndb/ipquery 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}){
@@ -66,12 +66,9 @@ case *
aux/listen -q -d /rc/bin/service tcp
}
-# cpu-specific late startup
-if(test -e /cfg/$sysname/cpustart)
- . /cfg/$sysname/cpustart
+if(test -f /dev/apm)
+ aux/apm
# mode of /proc/*/ctl is inherited across rfork, and sets modes on
# other /proc files, such as note, so let listen be killed.
dontkill '^(ipconfig|factotum|mntgen|venti|kfs|cwfs.*|cs|dns|reboot)$'
-
-exit ''