diff options
| author | Taru Karttunen <taruti@taruti.net> | 2011-03-30 17:14:36 +0300 |
|---|---|---|
| committer | Taru Karttunen <taruti@taruti.net> | 2011-03-30 17:14:36 +0300 |
| commit | 2959e1ede0ebc6fdffd7b8660f43c2ce14c9696f (patch) | |
| tree | f6343b1ce11a8c87251dd27cf3d3e26b50693fa7 /rc/bin/ipconf/outside | |
| parent | e463eb40363ff4c68b1d903f4e0cdd0ac1c5977f (diff) | |
| download | plan9front-2959e1ede0ebc6fdffd7b8660f43c2ce14c9696f.tar.xz | |
Import sources from 2011-03-30 iso image - rc
Diffstat (limited to 'rc/bin/ipconf/outside')
| -rwxr-xr-x | rc/bin/ipconf/outside | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/rc/bin/ipconf/outside b/rc/bin/ipconf/outside new file mode 100755 index 000000000..3f060f691 --- /dev/null +++ b/rc/bin/ipconf/outside @@ -0,0 +1,24 @@ +#!/bin/rc +ip/ipconfig -dDG + +# supply unknowns with outside addresses +if( ! grep -s 'auth=' /net/ndb){ + echo ' auth=204.178.31.3'>>/net/ndb + echo ' authdom=cs.bell-labs.com'>>/net/ndb +} +if( ! grep -s 'ntp=' /net/ndb) + echo ' ntp=204.178.31.2'>>/net/ndb +if( ! grep -s 'dns=' /net/ndb){ + echo ' dns=204.178.31.3'>>/net/ndb + echo ' dns=204.178.31.4'>>/net/ndb +} + +# set ndbfile for termrc touse +NDBFILE=/lib/ndb/external + +# start dns if it isn't already going +if(! test -e /srv/dns ) + ndb/dns -r + +# just in case we can't find achille +cpu=tcp!204.178.31.2 |
