ref: 40a2f3f8bad01abb94bbfcc2b282a0bfa95e6f92
parent: f5270cc29ed8b3336d0623ad3458acac20692626
author: Aaron Bieber <aaron@bolddaemon.com>
date: Wed Nov 29 17:04:54 EST 2023
martin: switch to termrc.local
--- a/martin/termrc
+++ /dev/null
@@ -1,29 +1,0 @@
-#!/bin/rc
-
-fn msg {
- echo '==>' $*
-}
-
-nvram=/dev/sdN0/nvram
-secstore=tcp!127.1!5356
-
-msg creating loopback...
-ip/ipconfig loopback /dev/null 127.1
-
-msg starting keyfs...
-auth/keyfs -wp -m /mnt/keys /adm/keys
-
-msg starting secstored...
-auth/secstored -s tcp!127.1!5356
-
-msg starting reform tools...
-reform/pm
-reform/audio
-
-msg binding ether1
-bind -a '#l1' /net
-
-
-
-
-
--- /dev/null
+++ b/martin/termrc.local
@@ -1,0 +1,37 @@
+#!/bin/rc
+
+nvram=/dev/sdN0/nvram
+secstore=tcp!127.1!5356
+
+if(! test -e /srv/cs && ! test -e /net/cs)
+ ndb/cs
+sysname=`{cat /dev/sysname}
+
+fn msg {
+ echo '==>' $*
+}
+
+msg creating loopback...
+ip/ipconfig loopback /dev/null 127.1
+
+msg starting keyfs...
+auth/keyfs -wp -m /mnt/keys /adm/keys
+
+msg starting secstored...
+auth/secstored -s tcp!127.1!5356
+auth/factotum
+
+msg setting up networking...
+bind -a '#B' /net
+bind -a '#l0' /net
+bind -a '#l1' /net
+
+9am/whi ether1
+
+ethermultilink /net/ether1 /net/ether0 >/net/bridge0/ctl
+ip/ipconfig -6 ether /net/ether1
+ip/ipconfig -N ether /net/ether1 >[2]/dev/null || @{
+ test -e /env/nora6 || ip/ipconfig ether /net/ether1 ra6 recvra 1 &
+ ip/ipconfig -h $sysname ether /net/ether1 &
+ wait
+}