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

front
cinap_lenrek 2013-02-27 18:04:35 +01:00
parent ec49732fae
commit 8a903895a0
1 changed files with 3 additions and 2 deletions

View File

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