jabellan
Un Ilicitano más
Colaborador
- Registrado
- 4 Jun 2010
- Mensajes
- 3.539
- Reacciones
- 0
- Puntos
- 137
estoy intentando hacer funcionar cccam+mbox , visionar por cccam y compartir por las dos pero no se como arrancar el script para que funcione .os dejo el script por si alguien lo puede revisar y me puede ayudar a ponerlo en marcha,gracias.
#!/bin/sh
CAMNAME="|CCcam| + mbox"
remove_tmp () {
rm -rf /tmp/*.info /tmp/*.tmp
}
echo "[SCRIPT] $1: $CAMNAME"
start_cam ()
{
remove_tmp
sleep 2
/bin/mkdir -p /dev/dvb/adapter1
start-stop-daemon -S -x socat PTY,link=/dev/dvb/adapter1/ca0 UDP-SENDTO:localhost:65535 &
start-stop-daemon -S -x socat PTY,link=/dev/dvb/adapter1/demux0 UDP-SENDTO:localhost:65535 &
sleep 3
if ! grep '^A:.*' /usr/keys/mbox.cfg > /dev/null
then
echo "A: { 1 }" >> /usr/keys/mbox.cfg
fi
sed -i '/^P:/d' /usr/keys/mbox.cfg
start-stop-daemon -S -x mbox
sleep 8
sed -i '/DVB API/d' /etc/CCcam.cfg
start-stop-daemon -S -x CCcam
}
echo "[SCRIPT] $1: $CAMNAME"
stop_cam ()
{
remove_tmp
start-stop-daemon -K -s 9 -x CCcam
touch /tmp/mbox.kill
start-stop-daemon -K -s 9 -x mbox
start-stop-daemon -K -s 9 -x socat
}
case "$1" in
start)
start_cam
;;
stop)
stop_cam
;;
restart)
$0 stop
$0 start
;;
*)
esac
exit 0