Oscam Auto Update Script for Receivers

There are 30 replies in this Thread which was already clicked 20,820 times. The last Post () by makikou.

    • Official Post

    11/04/2011


    Oscam Auto Update Script on Dreambox and other linux recivers


    with this script you can autoupdate the lastest oscam version


    Oscam is an open-source project and the developers constantly update the SVN.


    I have some Dreamboxes at home and I like to have my oscam up to date so I created a script for dreambox that downloads the latest binaries from UMP FileCenter and updates my oscam. I run this script every day at 5:00 AM using cronjobs.


    Here is the script for Dreambox 800HD (should work on all enigma 2 dreamboxes).


    If your oscam script is not /usr/script/oscam.emu then you have to adapt the start and stop commands to your own box.


    Download this script and upload it to the /usr/script folder on dreambox and set the permissions to 755.


    To execute the update just telnet to the box and execute the command sh /usr/script/oscam-update.sh.


    Alternatively you can set a cronjob to execute the script at a given time (ie: everyday at 5:00 AM) which really make the process completely automatic.


    Enjoy it!

  • Hi,


    Thanks for this although I had to modify it to get it to work. The download location appears to have changed. Updated script tested on dm800 with Gemini V5.1. The Oscam_cam.sh start script I'm using is the one I wrote about here http://linuxsat-support.com/os…age-oscam-cam-script.html. Modified script.


    #!/bin/sh
    #OSCAM AUTO UPDATE SCRIPT


    #CONFIGURATION


    # The location of your oscam binary
    OSCAM_BIN="/usr/bin/oscam";


    # Command to stop the running oscam
    STOP_OSCAM_CMD="/usr/script/Oscam_cam.sh stop";


    # Command to start oscam
    START_OSCAM_CMD="/usr/script/Oscam_cam.sh start";


    # Use "mips-tuxbox" if you are on mips (enigma2) dreambox (Models: 500HD, 7020HD, 7025, 7025+, 800HD, 800HD SE, 8000)
    PLATFORM="mips-tuxbox";


    # Use "powerpc-tuxbox" if you are on powerpc (enigma1) dreambox (Models: 7000, 56x0, 500, 500+, 600, 7020)
    #PLATFORM="powerpc-tuxbox";




    #PROCESS UPDATE
    cd /tmp
    echo "Downloading UMP FileCenter index file...";
    wget -O "ump.tmp" "http://www.ump2002.net/index.php?direction=0&order=mod&directory=OSCam&"
    echo "Checking for latest revision on UMP...";
    html=$(cat ump.tmp)
    ft="index.php?action=downloadfile&filename=oscam-svn"
    st="-light-Distribution.tar.gz&directory=OSCam&"
    revision=${html#*$ft}
    revision=${revision%%$st*}
    if (expr "$revision" : '-\?[0-9]\+$' > /dev/null) then
    filename="oscam-svn$revision-$PLATFORM";
    echo "Downloading revision $revision from UMP...";
    wget -O "latest_oscam.tar.gz" "http://www.ump2002.net/$ft$revision$st"
    echo "Extracting Oscam binary for $PLATFORM...";
    tar -xvzf latest_oscam.tar.gz $filename
    if [ -f $filename ]; then
    echo "Stopping currently running Oscam...";
    $STOP_OSCAM_CMD
    echo "Copying the new version to $OSCAM_BIN";
    cp -f $filename $OSCAM_BIN
    echo "Starting Oscam";
    $START_OSCAM_CMD
    echo "Update process completed!";
    else
    echo "Unable to extract latest version from archive. Aborting.";
    fi
    else
    echo "Unable to get latest revision from UMP. Operation Aborted!";
    fi
    echo "Cleaning up temporary files...";
    rm ump.tmp
    rm latest_oscam.tar.gz
    rm $filename
    cd ~
    echo "All done!";

  • did try that script and got this error.


    I went to the website in the script and tried the newer versions but none of them seem to support "protocol=pcsc". My current version of oscam is 1.00 unstable 4856.


    voyger.: A Person with no imagination his a person with no wing."

    voyger.:"never make a arguement with an idiot. It will drags you to its own level,and then he will strikes you with His experience."

  • thanks hamborambo for replay will have another look at it and will let you know

    voyger.: A Person with no imagination his a person with no wing."

    voyger.:"never make a arguement with an idiot. It will drags you to its own level,and then he will strikes you with His experience."

  • cdr you need a version compiled with pcsc support from that said website . The trouble with using precompiled oscam's is that everyones setup is different ; readers etc . are you needing mips build or powerpc build ??


    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.

  • did sorted now thanks all and to newtolinux for tip


    the script in the OP is not in Linux format, it is in Windows format and will not run.


    I have just updated my Oscam to 1.00-unstable_svn build 5083 from another site as the version that this script downloads does not have pcsc support.


    Attached is the OP script but I have modified it and it is now working, you will need to alter the cam start/stop configs depending on your own box.


    post my working files if somebody need

    Files

    voyger.: A Person with no imagination his a person with no wing."

    voyger.:"never make a arguement with an idiot. It will drags you to its own level,and then he will strikes you with His experience."

  • DM800se + Gemini GP3. I tried the script but does not work, I attach response from telnet
    : not foundcam.sh line 3 :
    : not foundcam.sh line 5 :
    : not foundcam.sh line 7 :
    : not foundcam.sh line 8 :
    : not foundcam.sh line 10 :
    : not foundcam.sh line 11 :
    : not foundcam.sh line 13 :
    : not foundcam.sh line 14 :
    : not foundcam.sh line 16 :
    : not foundcam.sh line 17 :
    : not foundcam.sh line 20 :
    : not foundcam.sh line 21 :
    : not foundcam.sh line 22 :
    /usr/bin/oscam.sh: cd: line 24: can't cd to /tmp
    Downloading UMP FileCenter index file...
    : not foundcam.sh line 25 :
    connecting to UMP FileCenter (209.17.190.135:80)
    ump.tmp 100% |*****************| 184k --:--: ETA
    Checking for latest revision on UMP...
    : not foundcam.sh line 27 :

    together we grow - ferdi


  • Please can you help me, thanks

    together we grow - ferdi

  • did you chmod 755 the script before running

    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.

  • refer to post 4 please


    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.

  • I have modified the orginal script.


    #!/bin/sh
    #OSCAM AUTO UPDATE SCRIPT
    #GET THE LATEST VERSION AT

    Code
    http://tekreaders.com/blog/2011/04/11/oscam-version-auto-update-on-dreambox/


    #CONFIGURATION


    # The location of your oscam binary
    OSCAM_BIN="/usr/softcams/oscam";


    # Command to stop the running oscam
    STOP_OSCAM_CMD="/usr/script/oscam_cam.sh stop";


    # Command to start oscam
    START_OSCAM_CMD="/usr/script/oscam_cam.sh start";


    # Use "mips-tuxbox" if you are on mips (enigma2) dreambox (Models: 500HD, 7020HD, 7025, 7025+, 800HD, 800HD SE, 8000. If you want to use with libusb then change
    it to "mips-tuxbox-webif-libusb"
    PLATFORM="mips-tuxbox-webif";


    # Directory. You can find the current directory from the URL.
    DIRECTORY="mips-tuxbox"


    #PROCESS UPDATE
    cd /tmp
    echo "Downloading UMP FileCenter index file...";
    wget -O "ump.tmp" "http://download.oscam.to/index.php?&direction=0&order=mod&directory=$DIRECTORY&"
    echo "Checking for latest revision on UMP...";
    html=$(cat ump.tmp)
    ft="index.php?action=downloadfile&filename=oscam-svn"
    st="-$DIRECTORY-webif-Distribution.tar.gz&directory=$DIRECTORY&amp"
    gt="index.php?action=downloadfile&filename=oscam-svn"
    kt="-$DIRECTORY-webif-Distribution.tar.gz&directory=$DIRECTORY&"
    revision=${html#*$ft}
    revision=${revision%%$st*}
    if (expr "$revision" : '-\?[0-9]\+$' > /dev/null) then
    filename="oscam-svn$revision-$PLATFORM";
    echo "Downloading revision $revision from UMP...";
    wget -O "latest_oscam.tar.gz" "http://download.oscam.to/$gt$revision$kt"
    echo "Extracting Oscam binary for $PLATFORM...";
    tar -xvzf latest_oscam.tar.gz $filename
    if [ -f $filename ]; then
    echo "Stopping currently running Oscam...";
    $STOP_OSCAM_CMD
    echo "Copying the new version to $OSCAM_BIN";
    cp -f $filename $OSCAM_BIN
    echo "Starting Oscam";
    $START_OSCAM_CMD
    echo "Update process completed!";
    else
    echo "Unable to extract latest version from archive. Aborting.";
    fi
    else
    echo "Unable to get latest revision from UMP. Operation Aborted!";
    fi
    echo "Cleaning up temporary files...";
    rm ump.tmp
    rm latest_oscam.tar.gz
    rm $filename
    cd ~
    echo "All done!";

  • Thanks dibun, I have updated the original post with the latest download links and ammended the script.


    This note refers to the amendment of June 26, the script no longer works after the introduction of oscam-svn5549-mips-tuxbox-webif-dynamic-threads-Distribution.tar.gz

    together we grow - ferdi

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!