#!/bin/tcsh

set TEST=`mount | grep /mnt/cdrom`

if ("$TEST" == "") then
  mount /mnt/cdrom
else
  eject /mnt/cdrom
endif

