#!/bin/sh

killslide() {
 if [ ! "`ps | grep wallslide | grep -v grep`" = "" ];then
  killall wallslide
 fi
}
case $1 in
 -stop)
 killslide
 ;;
 -start)
 if [ ! "`ps | grep wallslide | grep -v grep`" = "" ];then
  killslide
 else
  exec wallslide `dirname $2`
 fi
 ;;
esac
