summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
authorjpathy <jpathy@mail.nanosouffle.net>2013-05-22 21:55:08 +0530
committerjpathy <jpathy@mail.nanosouffle.net>2013-05-22 21:55:08 +0530
commit5331734335d2f1fbe5af90ca6b56ec10ffac48a6 (patch)
tree47bcf988652926720e7e085de1cd7902b5c20d52 /rc
parent81b7451972780743bcd00c963a1c9cb686a3e4ad (diff)
parent58201a67c1cfceda2993979852a367b213abc0ee (diff)
downloadplan9front-5331734335d2f1fbe5af90ca6b56ec10ffac48a6.tar.xz
merge
Diffstat (limited to 'rc')
-rwxr-xr-xrc/bin/netaudit10
1 files changed, 10 insertions, 0 deletions
diff --git a/rc/bin/netaudit b/rc/bin/netaudit
index 075e73a07..f043df988 100755
--- a/rc/bin/netaudit
+++ b/rc/bin/netaudit
@@ -38,6 +38,16 @@ fn checknet {
}
if not
echo ' we are in ipnet='^$ipnet
+ ipgw=`{ndb/ipquery sys $sysname ipgw | sed 's/^ipgw=//'}
+ if(~ $ipgw '' '::'){
+ echo ' we do not have an internet gateway, no ipgw= entry'
+ }
+ if not {
+ if(! ~ $ipgw *.*.*.* *:*:*:*:*:*:*:* *::*)
+ echo ' ipgw='$ipgw 'does not look like an ip address'
+ if not
+ echo ' ipgw='$ipgw 'looks ok'
+ }
dns=`{ndb/ipquery sys $sysname dns | sed 's/^dns=//'}
if(~ $dns '')
echo ' no dns= entry'