4 # get primary default interface if not specified
7 if(! ~ $e '/net/ether*')
11 # setup wifi encryption if any
12 if(~ $1 ether && ~ $service terminal && test -x /bin/aux/wpa){
13 if(grep -s '^status: need authentication' $2/ifstats >[2]/dev/null){
18 must ip/ipconfig -p $*
20 fs=`{awk -F'=' '/^[ ]*fs=/{print $2}' /net/ndb}
22 auth=`{awk -F'=' '/^[ ]*auth=/{print $2}' /net/ndb}
24 ask fs ' address is? ' $auth(1)
26 ask auth ' address is? ' $fs(1)
29 if(test -x /bin/ndb/dnsgetip){
30 for(i in fs auth secstore){
31 x=`{for(x in $$i) ndb/dnsgetip -a $x}
36 # set bootstrap authservers for factotum
38 grep -v '^[ ]*auth=' /net/ndb >/env/x
39 cat /env/x <{echo ' auth='^$auth^'
46 while(! ~ $#fs 0 && ! srv -q tcp!$fs(1)^!564 boot)
52 while(! ~ $#fs 0 && ! srvtls -q tcp!$fs(1)^!17020 boot)
58 while(! ~ $#fs 0 && ! srv -q il!$fs(1)^!17008 boot)
63 mtcp=(confignet connecttcp)
64 mtls=(confignet connecttls)
65 mil=(confignet connectil)
67 mt=(mtcp mtls mil $mt)