Welcome!

Welcome to Satlover forums, full of great people, ideas and excitement.

Please register if you would like to take part. link..

Register Now

Alert: Don't Use Hotmail Email Accounts for registration

Collapse

Before Access to all Forums and Trial accounts you must need to activate your account Email address

Oscam startup script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • duhoki
    Experienced Board Member
    • Aug 2011
    • 876

    Oscam startup script

    Hi mates. I have installed oscam manually on my dm800 clone but i just cant get it to auto start. Oscam is configured and working, but i have to start it manualy through telnet on every reboot. I use image OpenATV 4.0 but i cant get it to work on any image when i install oscam manually.

    I will start fresh here and hope some one will have a solutions
  • aplok
    Experienced Board Member
    • Jun 2013
    • 1155

    #2
    Re: Oscam startup script

    hello

    try to add

    /path/to/oscam --option ...

    into

    /etc/init.d/rcS

    or the equivalent you've got in /etc/init.d/

    Comment

    • KVF1966
      Board Senior Member
      • Dec 2012
      • 279

      #3
      Re: Oscam startup script

      still to run automatically in the receiver set plugin "check ocscam" and make sure attribute must be 755

      Comment

      • duhoki
        Experienced Board Member
        • Aug 2011
        • 876

        #4
        Re: Oscam startup script

        I do enter /usr/bin/oscam & in rcS but when i reboot the dreambox it wont startup correctly as if it is hanging on this script. Cant access it throug FTP after it crash so i will have to reflash it. But shouldnt it be any "exit 0" in rcS?

        #!/bin/sh
        #
        # rcS Call all S??* scripts in /etc/rcS.d in
        # numerical/alphabetical order.
        #
        # Version: @(#)/etc/init.d/rcS 2.76 19-Apr-1999 miquels@cistron.nl
        #

        PATH=/sbin:/bin:/usr/sbin:/usr/bin
        runlevel=S
        prevlevel=N
        umask 022
        export PATH runlevel prevlevel

        # Make sure proc is mounted
        #
        [ -d "/proc/1" ] || mount /proc

        #
        # Source defaults.
        #
        . /etc/default/rcS

        #
        # Trap CTRL-C &c only in this shell so we can interrupt subprocesses.
        #
        trap ":" INT QUIT TSTP

        #
        # Call all parts in order.
        #
        /usr/bin/oscam &

        exec /etc/init.d/rc S

        Comment

        • aplok
          Experienced Board Member
          • Jun 2013
          • 1155

          #5
          Re: Oscam startup script

          Code:
          #
          #	Call all parts in order.
          #
          /usr/bin/oscam &
          
          exec /etc/init.d/rc S
          hi,

          1. try this
          Code:
          # - first : system service
          exec /etc/init.d/rc S
          
          # - then : your private service
          /usr/bin/oscam [B]&[/B]
          2. check oscam syntax. no option ? no config file ?
          i should have something like

          Code:
          /pathto/oscam -b -c /path/config.dir
          chek needed parameters with oscam --help

          3. give oscam a grace time before kill him:
          Code:
          # - first : system service
          exec /etc/init.d/rc S
          
          # - auto killer
          { sleep 120; ps aux |grep oscam |awk '{print $1}' |while read pid; do kill -9 $pid; done; } & 
          
          # - then : your private service
          /usr/bin/oscam [B]&[/B]

          Comment

          Working...