]> git.lizzy.rs Git - plan9front.git/blob - rc/bin/ipconf/outside
merge
[plan9front.git] / rc / bin / ipconf / outside
1 #!/bin/rc
2 ip/ipconfig -dDG
3
4 # supply unknowns with outside addresses
5 if( ! grep -s 'auth=' /net/ndb){
6         echo '  auth=204.178.31.3'>>/net/ndb
7         echo '  authdom=cs.bell-labs.com'>>/net/ndb
8 }
9 if( ! grep -s 'ntp=' /net/ndb)
10         echo '  ntp=204.178.31.2'>>/net/ndb
11 if( ! grep -s 'dns=' /net/ndb){
12         echo '  dns=204.178.31.3'>>/net/ndb
13         echo '  dns=204.178.31.4'>>/net/ndb
14 }
15
16 # set ndbfile for termrc touse
17 NDBFILE=/lib/ndb/external
18
19 # start dns if it isn't already going
20 if(! test -e /srv/dns )
21         ndb/dns -r
22
23 # just in case we can't find achille
24 cpu=tcp!204.178.31.2