diff options
author | aiju <devnull@localhost> | 2017-10-04 15:56:53 +0000 |
---|---|---|
committer | aiju <devnull@localhost> | 2017-10-04 15:56:53 +0000 |
commit | 99700fb02476489385f54ff281b623a4d86c4ab0 (patch) | |
tree | b41d78af7097b61f6dbd44e3119ffadccec6e304 | |
parent | d5576d84733a92fd4237da0ba871c6efe8e7a3c6 (diff) | |
download | plan9front-99700fb02476489385f54ff281b623a4d86c4ab0.tar.xz |
check for fs= in netaudit
-rwxr-xr-x | rc/bin/netaudit | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rc/bin/netaudit b/rc/bin/netaudit index 921efa9c2..c7423a86b 100755 --- a/rc/bin/netaudit +++ b/rc/bin/netaudit @@ -64,6 +64,13 @@ fn checknet { authok=1 echo ' auth='$auth 'looks ok' } + fs=`{ndb/ipquery sys $sysname fs | sed 's/^fs=//'} + if(~ $fs '') + echo ' no fs= entry (needed for tls boot)' + if not if(! ip/ping -n 1 $fs >/dev/null >[2=1]) + echo ' fs='$fs 'does not reply to ping (needed for tls boot)' + if not + echo ' fs='$fs 'looks ok' } fn checkauth { echo 'checking auth server configuration:' |