shithub: riscv

Download patch

ref: 99700fb02476489385f54ff281b623a4d86c4ab0
parent: d5576d84733a92fd4237da0ba871c6efe8e7a3c6
author: aiju <devnull@localhost>
date: Wed Oct 4 11:56:53 EDT 2017

check for fs= in netaudit

--- a/rc/bin/netaudit
+++ b/rc/bin/netaudit
@@ -64,6 +64,13 @@
 		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:'