diff --git a/rc/bin/cpurc b/rc/bin/cpurc index 8f1cc1a86..55bb6a1a0 100755 --- a/rc/bin/cpurc +++ b/rc/bin/cpurc @@ -25,6 +25,11 @@ nusbrc # name translation, cs sets /dev/sysname ndb/cs sysname=`{cat /dev/sysname} + +# site-specific startup +if(test -e /rc/bin/cpurc.local) + . /rc/bin/cpurc.local + if (~ $#sysname 0 || ~ $sysname ''){ sysname=cirno # default echo -n $sysname >/dev/sysname diff --git a/rc/bin/termrc b/rc/bin/termrc index 18a46fce8..050dde3cd 100755 --- a/rc/bin/termrc +++ b/rc/bin/termrc @@ -32,6 +32,11 @@ if (! ~ $#disk 0) swap $disk(1) >/dev/null >[2=1] rm -f /env/disk +# we do this before we have a name. we may need to do network +# setup so that we can get a name. +if(test -e /rc/bin/termrc.local) + . /rc/bin/termrc.local + # cs sets sysname ndb/cs sysname=`{cat /dev/sysname}