Jump to content


Photo

CCCam _OScam startup script?


  • Please log in to reply
3 replies to this topic

#1 myname70

  • Member
  • 34 posts

0
Neutral

Posted 31 January 2013 - 06:42

I am looking for CCCam_Oscamstartup script for DM800HD. Pls any links to download it?

Re: CCCam _OScam startup script? #2 Ivan

  • Senior Member
  • 68 posts

+1
Neutral

Posted 1 February 2013 - 10:22

This is a Startscript from CuBiC Image Feed. Maybe you have to edit the Script to make it work on your Image.

#!/bin/sh
EMU="OSCam 1.20 + CCcam 2.1.3"
CAMD_NAME="OSCam 1.20 + CCcam 2.1.3"
logger $0 $1
echo $0 $1
remove_tmp ()
{
    [ -e /tmp/ecm.info ] && rm -rf /tmp/ecm.info
    [ -e /tmp/ecm0.info ] && rm -rf /tmp/ecm0.info
[ -e /tmp/ecm1.info ] && rm -rf /tmp/ecm1.info
    [ -e /tmp/.CCcam.nodeid ] && rm -rf /tmp/.CCcam.nodeid
[ -e /tmp/CCcam.kill ] && rm -rf /tmp/CCcam.kill
    [ -e /tmp/warnings.txt ] && rm -rf /tmp/warnings.txt
    [ -e /tmp/oscam.log ] && rm -rf /tmp/oscam.log
    [ -e /tmp/oscam.kill ] && rm -rf /tmp/oscam.kill
    [ -e /tmp/oscamuser.log ] && rm -rf /tmp/oscamuser.log
}
case "$1" in
	    start)
		    echo "[SCRIPT] $1: $CAMD_NAME"
		    if [ -f /usr/keys/oscam.conf ]; then
				    /usr/bin/oscam1.20-cccam2.1.3 -c /usr/keys >/dev/null &
		    else
				    /usr/bin/oscam1.20-cccam2.1.3 -c /etc/tuxbox/config >/dev/null &
		    fi
   sleep 10
				    /usr/bin/CCcam2.1.3 >/dev/null &
   sleep 1
		    ;;
	    stop)
		    echo "[SCRIPT] $1: $CAMD_NAME"
				    killall CCcam2.1.3 > /tmp/CCcam.kill
		    sleep 2
				    killall oscam1.20-cccam2.1.3 > /tmp/CCcam.kill
   sleep 2
				    remove_tmp
		    ;;
	    restart)
			    $0 stop
			    sleep 1
			    $0 start
			    exit
			    ;;
	    status)
			    echo
			    ;;
	    *)
			    $1 stop
			    exit 1
			    ;;
esac
exit 0

TechniSat Multytenne Twin: 19,2°E | 13,0°E | 23,5°E | 28,2°E -> OpenPLi4.0@vusolo2
Multifeed Offset: 19,2°E | 13,0°E | 4,8°E | 5,0°W  -> OpenPLi4.0@dm800se + OpenPLi4.0@vuzero


Re: CCCam _OScam startup script? #3 myname70

  • Member
  • 34 posts

0
Neutral

Posted 2 February 2013 - 13:41

This is a Startscript from CuBiC Image Feed. Maybe you have to edit the Script to make it work on your Image.

#!/bin/sh
EMU="OSCam 1.20 + CCcam 2.1.3"
CAMD_NAME="OSCam 1.20 + CCcam 2.1.3"
logger $0 $1
echo $0 $1
remove_tmp ()
{
	[ -e /tmp/ecm.info ] && rm -rf /tmp/ecm.info
	[ -e /tmp/ecm0.info ] && rm -rf /tmp/ecm0.info
[ -e /tmp/ecm1.info ] && rm -rf /tmp/ecm1.info
	[ -e /tmp/.CCcam.nodeid ] && rm -rf /tmp/.CCcam.nodeid
[ -e /tmp/CCcam.kill ] && rm -rf /tmp/CCcam.kill
	[ -e /tmp/warnings.txt ] && rm -rf /tmp/warnings.txt
	[ -e /tmp/oscam.log ] && rm -rf /tmp/oscam.log
	[ -e /tmp/oscam.kill ] && rm -rf /tmp/oscam.kill
	[ -e /tmp/oscamuser.log ] && rm -rf /tmp/oscamuser.log
}
case "$1" in
		start)
			echo "[SCRIPT] $1: $CAMD_NAME"
			if [ -f /usr/keys/oscam.conf ]; then
					/usr/bin/oscam1.20-cccam2.1.3 -c /usr/keys >/dev/null &
			else
					/usr/bin/oscam1.20-cccam2.1.3 -c /etc/tuxbox/config >/dev/null &
			fi
   sleep 10
					/usr/bin/CCcam2.1.3 >/dev/null &
   sleep 1
			;;
		stop)
			echo "[SCRIPT] $1: $CAMD_NAME"
					killall CCcam2.1.3 > /tmp/CCcam.kill
			sleep 2
					killall oscam1.20-cccam2.1.3 > /tmp/CCcam.kill
   sleep 2
					remove_tmp
			;;
		restart)
				$0 stop
				sleep 1
				$0 start
				exit
				;;
		status)
				echo
				;;
		*)
				$1 stop
				exit 1
				;;
esac
exit 0


Thanks. I tired it, tried to modify, but does not work.. Maybe doing something wrong

Re: CCCam _OScam startup script? #4 wannaplay

  • Senior Member
  • 164 posts

+1
Neutral

Posted 15 March 2013 - 04:40

- This one works, at least it does on my vuduo. Place it in /etc/init.d
- I've named the file this and make sure you chmod 755: CCcam_2.3.0_oscam-experimental_cam.sh
- CCcam_2.3.0 is exactly that and "oscam-experimental" is the experimental version which is downloadable from the download menu on the pli image on the reciever. You can replace it with any oscam that works for whatever your system is, just make sure that the names on the files are "oscam-experimental" or alter it to this name or the other way around. So below if you downloaded a file with the name oscam 1.20 just alter the "oscam-experimental" to oscam 1.20 on the script below, make sure you go through all the lines that have this name and alter it to oscam 1.20, same goes with CCam 2.3.0, alter it to whatever name is on the cam file you downloaded.
- you can also use this script with whatever cams you wanna use, you can even using 3 or 4 cams at the same time, works with mgcamd and newcs, also just make sure that the names are the same as the names of the cam file you've downloaded.

#!/bin/sh

########################################

CAMD_ID=4296
CAMD_NAME="CCcam 2.3.0/oscam-experimental"
CAMD_BIN=oscam-experimental

INFOFILE_A=ecm.info
INFOFILE_B=ecm1.info
INFOFILE_C=ecm2.info
INFOFILE_D=ecm3.info
INFOFILE_E=ecm4.info
INFOFILE_F=ecm5.info
#Expert window
INFOFILE_LINES=1111111111000000
#Zapp after start
REZAPP=0

########################################

logger $0 $1
echo $0 $1

remove_tmp () {
rm -rf /tmp/*.info* /tmp/*.tmp*
}

case "$1" in
start)
remove_tmp
/usr/bin/oscam-experimental &
sleep 15
/usr/bin/CCcam 2.3.0 &
;;
stop)
killall -9 oscam-experimental CCcam 2.3.0 2>/dev/null
sleep 2
remove_tmp
;;
*)
$0 stop
exit 0
;;
esac

exit 0

Edited by wannaplay, 15 March 2013 - 04:42.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users