Voila son contenu :
--------------------------------------------------------------------------
#!/bin/sh
########################################
###### Powered by Vu+ Image Team ######
##
http://www.vuplus-support.com ##
########################################
EMUNAME="Hypercam 2.06"
remove_tmp ()
{
[ -e /tmp/.emu.info ] && rm -rf /tmp/.emu.info
[ -e /tmp/ecm.info ] && rm -rf /tmp/ecm.info
[ -e /tmp/pid.info ] && rm -rf /tmp/pid.info
[ -e /tmp/cardinfo ] && rm -rf /tmp/cardinfo
[ -e /tmp/hypercam.pid ] && rm -rf /tmp/hypercam.pid
}
case "$1" in
start)
echo "[SCRIPT] $1: $EMUNAME"
remove_tmp
touch /tmp/.emu.info
echo Hypercam 2.06> /tmp/.emu.info
/usr/bin/hypercam2.06 >/dev/null &
pidof hypercam2.06 > /tmp/hypercam.pid
;;
stop)
echo "[SCRIPT] $1: $EMUNAME"
killall -9 hypercam2.06
remove_tmp
;;
restart)
$0 stop
sleep 2
$0 start
exit
;;
*)
$0 stop
exit 1
;;
esac
exit 0
-------------------------------------------------------------