:
# sfs - shell script front-end to sfs, the Space Flight Simulator
#

inform() {
	echo "\nThe sfs Space Flight Simulator is apparently not installed."
	echo "In order to install sfs, as root, execute the command :"
	echo "\n\t# /usr/skunk/bin/sprinkle sfs\n"
	echo "This will create a writeable directory /usr/games/lib/sfs"
	echo "containing the necessary sfs files."
	echo "You can then run sfs as a normal user by executing the command :"
	echo "\n\t$ /usr/skunk/bin/X11/sfs\n"
	exit 1
}

if [ -d /usr/games/lib/sfs ]
then
	cd /usr/games/lib/sfs
	[ -x sfs ] || inform
	./sfs
else
	inform
fi

exit 0
