diff options
| author | jpathy <jpathy@mail.nanosouffle.net> | 2013-05-22 21:55:08 +0530 |
|---|---|---|
| committer | jpathy <jpathy@mail.nanosouffle.net> | 2013-05-22 21:55:08 +0530 |
| commit | 5331734335d2f1fbe5af90ca6b56ec10ffac48a6 (patch) | |
| tree | 47bcf988652926720e7e085de1cd7902b5c20d52 /rc | |
| parent | 81b7451972780743bcd00c963a1c9cb686a3e4ad (diff) | |
| parent | 58201a67c1cfceda2993979852a367b213abc0ee (diff) | |
| download | plan9front-5331734335d2f1fbe5af90ca6b56ec10ffac48a6.tar.xz | |
merge
Diffstat (limited to 'rc')
| -rwxr-xr-x | rc/bin/netaudit | 10 |
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' |
