add cpurc.local and termrc.local hooks
This commit is contained in:
parent
24ea306fa6
commit
ec49732fae
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue