add cpurc.local and termrc.local hooks

This commit is contained in:
cinap_lenrek 2013-02-27 17:59:57 +01:00
parent 24ea306fa6
commit ec49732fae
2 changed files with 10 additions and 0 deletions

View file

@ -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

View file

@ -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}