]> git.lizzy.rs Git - plan9front.git/commitdiff
termrc: termrc.local can start ndb/cs for us, so check if its already running
authorcinap_lenrek <cinap_lenrek@gmx.de>
Wed, 27 Feb 2013 17:04:35 +0000 (18:04 +0100)
committercinap_lenrek <cinap_lenrek@gmx.de>
Wed, 27 Feb 2013 17:04:35 +0000 (18:04 +0100)
rc/bin/termrc

index 050dde3cd9adf3853de9858cef14a342014a4215..ca7c94f79f0ef48b16f69396fa0342bf5c820aee 100755 (executable)
@@ -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