ref: ec49732fae424d0e8b567e3f82eab3ba16cd1b59
parent: 24ea306fa66c77739d4c35c892bdf1283f51bb33
author: cinap_lenrek <[email protected]>
date: Wed Feb 27 12:59:57 EST 2013
add cpurc.local and termrc.local hooks
--- a/rc/bin/cpurc
+++ b/rc/bin/cpurc
@@ -25,6 +25,11 @@
# 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
--- a/rc/bin/termrc
+++ b/rc/bin/termrc
@@ -32,6 +32,11 @@
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}