Oscam start on boot. Not working

There are 6 replies in this Thread which was already clicked 566 times. The last Post () by burnout.

  • Hi,


    As said, when restarting the Vu (with openatv 7.3), Oscam doesn't start. I need to do it manually in the menu. (CAM1)


    Don't understand as the 'softcam' file in etc/init seems to be ok


    #!/bin/sh

    DAEMON=/usr/bin/oscam

    STARTCAM="env -i /usr/bin/oscam -b -c /etc/tuxbox/config"

    STOPCAM="killall -9 oscam"

    DESC="Softcam"


    test -f $DAEMON || exit 0

    set -e


    case "$1" in

    start)

    $STOPCAM &&

    echo -n "starting $DESC: $DAEMON... "

    sleep 5

    $STARTCAM

    echo "done."

    ;;

    stop)

    echo -n "stopping $DESC: $DAEMON... "

    $STOPCAM

    echo "done."

    ;;

    restart)

    echo "restarting $DESC: $DAEMON... "

    $0 stop

    echo "wait..."

    sleep 5

    $0 start

    echo "done."

    ;;

    *)

    echo "Usage: $0 {start|stop|restart}"

    exit 1

    ;;

    esac


    exit 0

    Edited once, last by burnout ().

  • burnout

    Changed the title of the thread from “Oscam doesn't start with receiver” to “Oscam start on boot. Not working”.
  • Did you update this line ?:

    CAMNAME="oscam-11719-arm-EMU"

    The name of the oscam from init.d file must match the name of the oscam from /usr/bin/ folder; eg: " oscam-11719-arm-EMU"

    spelling & the writing of the names must match.

    This is my init.d file:

    "CAMNAME="oscam-11719-arm-EMU"


    remove_tmp() {

    rm -rf /tmp/*.info* /tmp/*.tmp* /tmp/*share* /tmp/*.pid* /tmp/*sbox* /tmp/oscam* /tmp/.oscam

    }



    case "$1" in

    start)

    ulimit 1024

    remove_tmp

    /usr/bin/${CAMNAME} --daemon --pidfile /tmp/cam.pid --restart 2 --utf8 &

    ;;

    stop)

    killall -9 ${CAMNAME} 2>/dev/null

    remove_tmp

    ;;

    restart | reload)

    $0 stop

    sleep 1

    $0 start

    ;;

    version)

    echo "${CAMNAME}"

    ;;

    info)

    echo "${CAMNAME}"

    ;;

    *)

    echo "Usage: $0 start|stop|restart"

    exit 1

    ;;

    esac

    exit 0"

    NIHIL SINE DEO !

    Edited once, last by lme ().

  • ok but in /usr/bin/ folder, the file is "oscam". So it matches to init.d content

OpenATV Team Images Support Forum ~ based on OE-Alliance

OpenATV Supported Models ~ Airdigital, Amiko, Anadol, Atemio, Atto, AX Technology, Axas, Beyonwiz, Dinobot, Dreambox, Edision, EVO, Ferguson, Formuler, Galaxy Innovations, Gigablue, Golden Interstar, HDBox, Hitube, James Donkey, IQON, Izibox, Jepssen, Maxdigital, Medialink, MaXytec, MediaArt, Megaset, Miraclebox, MK-Digital, Mut@nt, Novaler, Octagon, Odin, Optibox, Protek, PULSe, Qviart, Red-Eagle, Relook, Roxxs, SAB, Sezam, Sogno, Space, Spycat, Technomate, Telestar, Tiviar, T-Rex, Uclan, Venton Unibox, Vimastec, VisionNet, VU+, VUplus, World Vision, Vizyon, WWio, Xsarius, and Xtrend.

Participate now!

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