#!/bin/sh

if [ -f /mnt/cdrom/CSIG/index.htm ]; then
        FILE=file:///mnt/cdrom/CSIG/index.htm
elif [ -f /media/cdrom/CSIG/index.htm ]; then
        FILE=file:///media/cdrom/CSIG/index.htm
elif [ -f CSIG/index.htm ]; then
        FILE=file:///CSIG/index.htm
else
	echo "No se encontró el índice"; exit 1
fi

if [ -f /usr/bin/mozilla ]; then
	/usr/bin/mozilla $FILE
elif [ -f /usr/bin/firefox ]; then
	/usr/bin/firefox $FILE
elif [ -f /usr/bin/iceweasel ]; then
	/usr/bin/icewasel $FILE
elif [ -f /usr/bin/firebird ]; then
	/usr/bin/firebird $FILE
elif [ -f /usr/bin/konqueror ]; then
	/usr/bin/konqueror $FILE
elif [ -f /usr/bin/netscape ]; then
	/usr/bin/netscape $FILE
elif [ -f /usr/bin/nautilus ]; then
	/usr/bin/nautilus $FILE
elif [ -f /usr/bin/lynx ]; then
	/usr/bin/lynx $FILE
else
	echo "No se encontró un navegador conocido"
fi
