termrc: termrc.local can start ndb/cs for us, so check if its already running

This commit is contained in:
cinap_lenrek 2013-02-27 18:04:35 +01:00
parent ec49732fae
commit 8a903895a0

View file

@ -37,8 +37,9 @@ rm -f /env/disk
if(test -e /rc/bin/termrc.local)
. /rc/bin/termrc.local
# cs sets sysname
ndb/cs
# cs sets sysname (termrc.local may already have started it so check)
if(! test -e /srv/cs && ! test -e /net/cs)
ndb/cs
sysname=`{cat /dev/sysname}
if(~ $#sysname 0 || ~ $sysname ''){
sysname=cirno # default