Jump to content


Photo

OSCAM don't start automatiquely

DM7000

  • Please log in to reply
17 replies to this topic

#1 jhack159

  • Senior Member
  • 33 posts

0
Neutral

Posted 12 September 2011 - 10:34

Hello,

I try to use oscam with my dreambox 7000 with open-pli beta image.

I put oscam (the bin file) in var/bin
I put oscam config files in etc/tuxbox/config

I also add in plimgr/cams/oscam (a txt file called oscam) with in this txt file 1.00

When I go to blue-panel-softcam manager, i can see oscam 1.00 but nothing happend when i use this cam on as defaut cam

When I start via telnet the command: oscam -d 255 , oscam started and It work well the channel are decrypted


so my question is, how to start oscam via plimgr ? perhaps i need to put a script ? a mistake elsewhere ?

tnx for help

Jack

Re: OSCAM don't start automatiquely #2 rokco

  • Member
  • 11 posts

0
Neutral

Posted 12 September 2011 - 11:39

You can install it from the extension menu... it will put the binary and startup scripts in the correct places for you.

The configs will be in /etc/tuxbox/config.
Have fun..!

Re: OSCAM don't start automatiquely #3 jhack159

  • Senior Member
  • 33 posts

0
Neutral

Posted 12 September 2011 - 12:56

You can install it from the extension menu... it will put the binary and startup scripts in the correct places for you.

The configs will be in /etc/tuxbox/config.
Have fun..!


Hello Rocko,

Tnx for answers.

In pli enigma1 there is no oscam in the manage software menuto install automatiquely.

I put in manualy the oscam bin file in /var/bin & config in /etc/tuxbox/config
To see in the display menu softcam menu, I put in plimgr/cams/oscam (text file that contains 1.00)
the is also a script oscam in plimgr/scripts

here is the script oscam


#!/bin/sh

CAMNAME2="oscam"

case "$1" in
start)
echo "[SCRIPT] $1: Starting $CAMNAME2"
/var/bin/oscam &
;;
stop)
echo "[SCRIPT] $1: Stopping $CAMNAME2"
/var/bin/pcamd -kill >/dev/null 2>&1
# oscam does not always seems to stop
usleep 100000
pids=`pidof oscam`
if [ -n "$pids" ] ; then
kill -9 $pids > /dev/null 2>&1
fi
;;
*)
$0 stop
exit 1
;;
esac

exit 0

perhaps i must move this script to /bin/sh ??? or change the line /var/bin/pcam BY /var/bin/cams ???

tnx for help

Jack

Re: OSCAM don't start automatiquely #4 rokco

  • Member
  • 11 posts

0
Neutral

Posted 12 September 2011 - 15:35

OH SORRY! Did not recognize that you are using Enigma1!

autostart in Linux is done with runlevel scripts...

(1) create /etc/init.d/softcam.oscam (your start skript for oscam)
(2) create a link to this file like follows:
cd /etc/rcS.d; ln -s ./init.d/softcam.oscam .

However I dont know if there is anything special about E1.

greetz,
rokco

Re: OSCAM don't start automatiquely #5 dAF2000

  • PLi® Ex-Leden
  • 14,151 posts

+52
Good

Posted 12 September 2011 - 16:28

OH SORRY! Did not recognize that you are using Enigma1!

autostart in Linux is done with runlevel scripts...

(1) create /etc/init.d/softcam.oscam (your start skript for oscam)
(2) create a link to this file like follows:
cd /etc/rcS.d; ln -s ./init.d/softcam.oscam .

However I dont know if there is anything special about E1.

greetz,
rokco

That's indeed the Linux solution, but doesn't work that way for the DM7000.

@jhack159: did you make the script executable?
Many answers to your question can be found in our wiki: http://openpli.org/wiki

Re: OSCAM don't start automatiquely #6 jhack159

  • Senior Member
  • 33 posts

0
Neutral

Posted 13 September 2011 - 09:16

OH SORRY! Did not recognize that you are using Enigma1!

autostart in Linux is done with runlevel scripts...

(1) create /etc/init.d/softcam.oscam (your start skript for oscam)
(2) create a link to this file like follows:
cd /etc/rcS.d; ln -s ./init.d/softcam.oscam .

However I dont know if there is anything special about E1.

greetz,
rokco

That's indeed the Linux solution, but doesn't work that way for the DM7000.

@jhack159: did you make the script executable?


@dAF2000 tnx for help but two questions

1) in softcam.oscam must a put my script in it ?
2) in de rcS.d must i put the line "-s ./init.d.sofcam.oscam" ??


Hello@ rokco

What do you mind with "make script executable" ?

Sorry it's my first step under linux

tnx for all help

Jack

Re: OSCAM don't start automatiquely #7 dAF2000

  • PLi® Ex-Leden
  • 14,151 posts

+52
Good

Posted 13 September 2011 - 09:24

Just do this:

chmod a+x /var/etc/plimgr/scripts/softcam.oscam
(Check if I typed the path /var/etc/... right. I don't have a DM7000 here, right now)

By the way, is the name of the file "softcam.oscam" right? I think you will find more scripts in that directory, for mgcamd for example. I don't know if they are called softcam.mgcamd or just mgcamd.
Many answers to your question can be found in our wiki: http://openpli.org/wiki

Re: OSCAM don't start automatiquely #8 mika-nl

  • Senior Member
  • 454 posts

+10
Neutral

Posted 13 September 2011 - 18:57

Can you use the script that i add ? i found it a few weeks ago on the net so i am not sure if it works.

MiKa

Attached Files



Re: OSCAM don't start automatiquely #9 jhack159

  • Senior Member
  • 33 posts

0
Neutral

Posted 14 September 2011 - 07:25

Just do this:

chmod a+x /var/etc/plimgr/scripts/softcam.oscam
(Check if I typed the path /var/etc/... right. I don't have a DM7000 here, right now)

By the way, is the name of the file "softcam.oscam" right? I think you will find more scripts in that directory, for mgcamd for example. I don't know if they are called softcam.mgcamd or just mgcamd.



Hello,

Now it's working fine

It was simply the right on the script file /var/etc/plimgr/scripts/oscam (was 600 -> set to 755)


TNX FOR YOUR HELP

Re: OSCAM don't start automatiquely #10 jhack159

  • Senior Member
  • 33 posts

0
Neutral

Posted 14 September 2011 - 07:26

Can you use the script that i add ? i found it a few weeks ago on the net so i am not sure if it works.

MiKa



Tnx for help

Jack

Re: OSCAM don't start automatiquely #11 mika-nl

  • Senior Member
  • 454 posts

+10
Neutral

Posted 13 September 2011 - 18:57

Can you use the script that i add ? i found it a few weeks ago on the net so i am not sure if it works.

MiKa

Re: OSCAM don't start automatiquely #12 jhack159

  • Senior Member
  • 33 posts

0
Neutral

Posted 14 September 2011 - 07:25

Just do this:

chmod a+x /var/etc/plimgr/scripts/softcam.oscam
(Check if I typed the path /var/etc/... right. I don't have a DM7000 here, right now)

By the way, is the name of the file "softcam.oscam" right? I think you will find more scripts in that directory, for mgcamd for example. I don't know if they are called softcam.mgcamd or just mgcamd.



Hello,

Now it's working fine

It was simply the right on the script file /var/etc/plimgr/scripts/oscam (was 600 -> set to 755)


TNX FOR YOUR HELP

Re: OSCAM don't start automatiquely #13 jhack159

  • Senior Member
  • 33 posts

0
Neutral

Posted 14 September 2011 - 07:26

Can you use the script that i add ? i found it a few weeks ago on the net so i am not sure if it works.

MiKa



Tnx for help

Jack

Re: OSCAM don't start automatiquely #14 MyB5

  • Member
  • 24 posts

0
Neutral

Posted 14 September 2011 - 22:15

Will above solution work on a DM600 as well?

Thx
_____________________________________
Vu+ Duo- Open Pli Beta
DM 600PVR-S - Barry Allen with different images
DM 800 Meoboot
CCcamd 2.2.1
0.8/ 4.8/ 9.0/ 13.0/ 16.0/ 19.2/ 23.5/ 28.2

Re: OSCAM don't start automatiquely #15 dAF2000

  • PLi® Ex-Leden
  • 14,151 posts

+52
Good

Posted 14 September 2011 - 22:25

Will above solution work on a DM600 as well?

Thx

Yes, it does.
Many answers to your question can be found in our wiki: http://openpli.org/wiki

Re: OSCAM don't start automatiquely #16 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 15 September 2011 - 19:13

and on the 600 you can also use proper sys V init (runlevel scripts) if you prefer.

Re: OSCAM don't start automatiquely #17 acegis

  • Member
  • 11 posts

0
Neutral

Posted 24 October 2011 - 15:52

hi guys, I have similar problem but on Clarke Tech ET9100.
I tried to use this solution described above but it does not work.
I have such script called oscam in the directory /var/etc/plimgr/scripts/ when I go manually and execute this script and it is ok, oscam starts but there is no any autostart :-(
After reboot I need to start it always manually via telnet.
Any hints for me?

Re: OSCAM don't start automatiquely #18 hemispherical1

  • Senior Member
  • 1,596 posts

+49
Good

Posted 24 October 2011 - 17:10

/var/etc/plimgr/scripts/ is used by CDK boxes (500-, 56x0, & 7000), that is all. OE E1 boxes use /etc/plimgr hierarchy & E2 boxes use "normal" SysV Init scripts. If you installed a OpenPLi oscam package, I'd assume it installed it's startup/shutdown script in /etc/init.d/ and symlinks in the corresponding /etc/rcx.d directories...



Try googling for expalanations & uses of SysV ( https://www.google.c...sv+init+scripts )


--
hemi

Ps. By default, Enigma2 is run from runlevel 3

Edited by hemispherical1, 24 October 2011 - 17:12.




3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users