#! /bin/csh -f
#
#	audiocheck
#
#	Check whether the system has 'good' audio hardware installed.
#	If not, put up a helpful notifier
# 

set hinvout="`hinv|grep Audio`"

switch ("$hinvout")
case *Audio*:
	if( ! -d $TOURDIR/sounds ) xconfirm -b OK -header "Sorry..." \
		-t "Because you do not have the audio files installed, we" \
		-t "recommend that you do not take this system tour." > /dev/null
	breaksw
default: xconfirm -b OK -header "Sorry..." \
		-t "Because your system does not have audio hardware, we" \
		-t "recommend that you do not take this system tour." > /dev/null
	breaksw
endsw
