#!/bin/tcsh

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

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

