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

while [ 0 ] 
do
cat <<EOF

	_________________________________________________
		HP X STATION 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 X Station
	are present on this computer.

2) Check operation of bootp
	Will test that bootp is operating correctly by emulating an X station
	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:/usr/lib/X11/700X 

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
