CAMNAME="CCcam Server"
# end
# This method starts CCcam
start_cam ()
{
/emu/cccam/CCcam.x86 & <== anpassen Pfad & CCcam Name!!
sleep 2
}
# This method stops CCcam
stop_cam ()
{
pkill CCcam.x86 <== anpassen CCcam Name & checken ob Befehl pkill funzt!!
}
case "$1" in
start)
echo "[START SCRIPT CCcam Server] $1: "
start_cam
;;
stop)
echo "[STOP SCRIPT CCcam Server] $1: "
stop_cam
;;
restart)
echo "Restarting CCcam Server "
stop_cam
sleep 5
start_cam
;;
*)
"$0" stop
exit 1
;;
esac
exit 0