How to - Oscam + CCcam start/stop cam script . Enigma 2

  • How to - Oscam + CCcam start/stop cam script . Enigma 2



    This is a simple script for those enigma 2 images without cam + cardserver options in the softcam menu from blue button. You can still start/stop etc from blue button by simply modifying your existing script on your receiver. The scripts in enigma 2 on most images are in /usr/camscript. You can simply use your favourite editor to amend the scripts already contained on the box.


    This script will start oscam first and then add a 15 second delay until starting cccam which allows oscam to take control of the internal readers before cccam grabs hold of them.


    The other benefit is that it enables you to install your own compiled oscam for your sat receiver and you dont have to rely on addon panels etc which contain old or buggy oscam versions.








    #!/bin/sh
    remove_tmp () {
    rm -rf /tmp/ecm.info /tmp/pid.info /tmp/cardinfo
    }
    case "$1" in
    start)
    remove_tmp
    /var/bin/oscam &
    sleep 15
    /var/bin/CCcam &
    ;;
    stop)
    touch /tmp/CCcam.kill
    sleep 5
    killall -9 CCcam oscam 2>/dev/null
    sleep 2
    remove_tmp
    ;;
    *)
    $0 stop
    exit 1
    ;;
    esac
    exit 0



    regards


    new2

    Dont forget to hit the thanks button!!!!!!!!!!!!!



    :41_002:



    Some articles may discuss topics that are illegal, so this information is provided for educational purposes only, your use of the content, downloads and files, or any part thereof, is made solely at your own risk and responsibility. Viewing Pay TV without a valid subscription is illegal. !! Linuxsat-Support.com cannot be held responsible for the content of any information stored or posted on this forum.

  • master G

    Set the Label from OSCam Scripts to Scripts OSCam

OSCam Support Forum

Configs, discussion, downloads and guides for OSCam Softcam.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!