#!/bin/sh
#@(#)HP Netstation Admin Scripts
#
# utils		Check software installation and networking
#

while [ 0 ] 
do
cat <<EOF

	_________________________________________________
		HP NETSTATION ADMINISTRATIVE TASKS
		    INSTALLATION TESTING MENU

	1) Check software installation

	2) Check operation of bootp

	3) Check operation of tftp

	4) Check operation of NFS

		?) Help		p) previous menu

EOF
  	$ECHO "Please enter selection (default=1): $NL"
	read SEL 
	case $SEL in
	   1|"")
		ckinstall 
		;; 
	      2)
		ckbootp 
		;; 
	      3)
		cktftp
		;;
	      4)
		cknfs
		;;
	  p*|P*)
		exit 100
		;; 
	     \?)
		cat <<EOF

Selecting:
1) Check software installation
	Will check that all files necessary in order to boot an HP Netstation
	are present on this computer.

2) Check operation of bootp
	Will test that bootp is operating correctly by emulating a netstation
	trying to boot.

3) Check operation of tftp
	Will test that tftp is operating correctly by fetching a file via tftp.

4) Check operation of NFS
	Checks if NFS is enabled, if nfsd is running, and if terminal has 
	permission to mount boot its boot file and fonts 
	from $HOSTNAME.

EOF
		;;
	      *)
		echo ""
		echo "Invalid selection"
		continue
		;; 
	esac

	RETCODE=$?
	if [ $RETCODE -ne 100 ]
	then
		echo ""
		$ECHO "Please type <Enter> to continue $NL"
		read SEL
	fi
done
