Sbox/CCcam start script request
Re: Sbox/CCcam start script request #2
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
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
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
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
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users