11 ## bind the ether0 to it
12 #echo 'bind ether /net/ether0' > /net/ipifc/0/ctl
18 export objtype=$cputype
25 #authentication='nvram=/boot/adm/nvram auth/factotum -sfactotum -S' # -a ...
26 # test xyzip=(0 0 0 104.9.33)
27 # test fsaddr='tcp!135.$xyzip(4)^!564'
28 # (me network server server-addr
34 # brho: i don't know what exactly 'remote' is supposed to be, but that is
35 # the third argument processed by adding to an ipifc. if we pass nothing,
36 # it'll build 'remote' by masking me & mask.
40 if [ "x$MACHINE" = "xc89" ]
42 # c89's config. use c96 for eth0 (.196). if you want, we can also use
44 # $ cat /9/net/ipifc/clone (get e.g. 2)
45 # $ echo "add 169.229.49.197 255.255.255.0" > /9/net/ipifc/2/ctl
52 if [ "x$MACHINE" = "xhossin" ]
54 # brho's soda hall desktop
61 # Post the read-only filesystem in #s/$beetroot
62 # and mount it on /boot so the commands in /boot/$cputype/bin
63 # are available to create the namespace (namespaces like to
64 # mount #s/boot on / and that should not be the read-only
66 # Must set hostowner to be that of the owner of the nvram file
67 # before paqfs starts otherwise factotum will not be able to
70 #/boot/echo -n sys > '#c/hostowner'
71 #/boot/paqfs -p -S $beetroot -m /boot -q /boot/$beetroot
72 #cd /boot/$cputype/bin
81 # Configure the networks.
86 # note: dhcp is possible, just not done yet.
87 #get an instance of a network stack
88 i=`cat /net/ipifc/clone`
89 # bind the ether0 to it
90 echo "bind ether /net/ether0 " > /net/ipifc/$i/ctl
92 echo "add $me $mask $remote" > /net/ipifc/$i/ctl
93 echo "add 0 0 $route" > /net/iproute
94 echo I am $me, default route $route
96 i=`cat /net/ipifc/clone`
97 echo "bind loopback /dev/null " > /net/ipifc/$i/ctl
98 echo "add 127.0.0.1 255.0.0.0 127.0.0.0 " > /net/ipifc/$i/ctl