Jump to content


Photo

Sbox/CCcam start script request


  • Please log in to reply
5 replies to this topic

#1 alsat1

  • Senior Member
  • 221 posts

+1
Neutral

Posted 25 June 2013 - 15:07

Hello.Can someone post here the start script for cam Sbox/CCcam?My image pli 3.0.I need sbox tu run with cccam for my nagra3 polsat card and sbox must start first and then about 5 sec. later cccam must start after sbox.One script for both cams please.regards.

Re: Sbox/CCcam start script request #2 kalehrl

  • Senior Member
  • 468 posts

+8
Neutral

Posted 26 June 2013 - 07:28

Try this one:

 

#!/bin/bash

case "$1" in
start)
    exec start-stop-daemon -S -x /usr/bin/sbox
    sleep 10
    exec start-stop-daemon -S -x /usr/bin/cccam
    ;;
stop)
    exec start-stop-daemon -K -R 2 -x /usr/bin/sbox
    exec start-stop-daemon -K -R 2 -x /usr/bin/cccam
    ;;
restart)
    $0 stop
    sleep 1
    $0 start
    ;;
*)
    echo "Usage: $0 start|stop|restart"
    exit 1
    ;;
esac
exit 0
 

 


 



Re: Sbox/CCcam start script request #3 alsat1

  • Senior Member
  • 221 posts

+1
Neutral

Posted 26 June 2013 - 11:03

Try this one:

 

#!/bin/bash

case "$1" in
start)
    exec start-stop-daemon -S -x /usr/bin/sbox
    sleep 10
    exec start-stop-daemon -S -x /usr/bin/cccam
    ;;
stop)
    exec start-stop-daemon -K -R 2 -x /usr/bin/sbox
    exec start-stop-daemon -K -R 2 -x /usr/bin/cccam
    ;;
restart)
    $0 stop
    sleep 1
    $0 start
    ;;
*)
    echo "Usage: $0 start|stop|restart"
    exit 1
    ;;
esac
exit 0
 

 


 

with this script sbox starting ok but cccam not.any idea?regards.



Re: Sbox/CCcam start script request #4 littlesat

  • PLi® Core member
  • 56,274 posts

+691
Excellent

Posted 26 June 2013 - 11:22

sbox claims enigma2 (dvbapi) before CCcam does....?

I suggest it is better to configure (if possible) that sbox does not claim dvbapi and CCcam does not claim the cardreader. Then even the pause is not required.

Good luck...


Edited by littlesat, 26 June 2013 - 11:24.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Sbox/CCcam start script request #5 alsat1

  • Senior Member
  • 221 posts

+1
Neutral

Posted 26 June 2013 - 12:41

There is no problem if I start sbox and then cccam by separate scripts:one for sbox another one for cccam.

I starting them via softcam manager via ppanel,here these scripts:

 

sbox

#!/bin/sh
case "$1" in
start)
	sleep 3 ; start-stop-daemon -S -b -x /usr/bin/sbox
	;;
stop)
	exec start-stop-daemon -K -R 2 -x /usr/bin/sbox
	;;
restart|reload)
	$0 stop
	sleep 1
	$0 start
	;;
version)
	echo "0.5.4"
	;;
info)
	echo "sbox 0.5.4"
	;;
*)
	echo "Usage: $0 start|stop|restart"
	exit 1
	;;
esac
exit 0

cccam

 

#!/bin/sh
case "$1" in
start)
	ulimit -s 1024
	exec start-stop-daemon -S -x /usr/bin/CCcam
	;;
stop)
	exec start-stop-daemon -K -R 2 -x /usr/bin/CCcam
	;;
restart|reload)
	$0 stop
	sleep 1
	$0 start
	;;
version)
	echo "2.3.0"
	;;
info)
	echo "CCcam 2.3.0"
	;;
*)
	echo "Usage: $0 start|stop|restart"
	exit 1
	;;
esac
exit 0

And there is only small problem when I make for eg.uptade of image and reboot dm800se,or just for some reason need reboot receiver only cccam starting automaticly,sbox no.



Re: Sbox/CCcam start script request #6 chrisgermany

  • Member
  • 3 posts

0
Neutral

Posted 10 September 2013 - 13:26

Hi guys, 

 

Question: where is saved, which startscript is to be started on reboot of the box ? In which file ? i cannot find it.

 

thanks for answer.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users