#!/bin/sh

# This script autoplays the current CD if it isn't already playing

if [ "`pidof xine`" = "" -a "`pidof mplayer`" = "" ] ; then 
  if [ "`pidof xawtv`" = "" -a "`pidof motv`" = "" ] ; then
    if [ "`pidof zapping`" = "" -a "`pidof aviplay`" = "" ] ; then   
      if [ "`pidof xmms`" = "" -a "`pidof mpg123`" = "" ] ; then
        $*
      fi
    fi
  fi
fi
