Results 1 to 5 of 5

Thread: Ubuntu Oscam Startup Script

  1. #1
    Premium Member
    Join Date
    Jan 2008
    Posts
    1,558
    Thanks
    65
    Thanked 84 Times in 64 Posts
    Rep Power
    270
    Reputation
    1032

    Default Ubuntu Oscam Startup Script

    I am needing to add a start up script in a Ubuntu Oscam Server I am playing around with.

    Done some searching here but it seems like finding a needle in a hay stack.

    I am a bit of a Linux newbie so if someone could please post what this should look like and where it is placed that would be a great help



Look Here ->
  • #2
    Member
    Join Date
    Jan 2008
    Location
    Gallifrey
    Posts
    375
    Thanks
    69
    Thanked 84 Times in 59 Posts
    Rep Power
    0
    Reputation
    461

    Default

    Go to the ETC folder then you need to edit the rc.local file then add the following;

    /usr/local/bin/oscam -b -c /usr/local/etc/ &

    exit 0


    cheers
    hannible
    Last edited by Hannible; 28-05-11 at 02:01 PM.

  • #3
    Premium Member
    Join Date
    Jan 2008
    Posts
    1,558
    Thanks
    65
    Thanked 84 Times in 64 Posts
    Rep Power
    270
    Reputation
    1032

    Default

    Thanks Hannible

    Just curious to understand this a little better - a am a newbie and learning on linux stuff

    1.
    "/usr/local/bin/oscam -b -c" --> this shows a path to oscam the "program" what does the "-b" and "-c" do?

    2.
    "/usr/local/etc/ &" ---> yes there is a path to the oscam files what does the "&" do

    3.
    exit 0 ---> ... I have no idea on this is for?

    Just for my learning I think this would be nice to know...

  • #4
    Member
    Join Date
    Jan 2008
    Location
    Gallifrey
    Posts
    375
    Thanks
    69
    Thanked 84 Times in 59 Posts
    Rep Power
    0
    Reputation
    461

    Default

    Basically, it allows oscam to auto start on pc boot up, then exit on successful startup on oscam.

    cheers
    hannible
    Last edited by Hannible; 28-05-11 at 09:44 PM.

  • #5
    Senior Member
    Join Date
    Feb 2008
    Posts
    693
    Thanks
    4
    Thanked 217 Times in 139 Posts
    Rep Power
    263
    Reputation
    2138

    Default

    Quote Originally Posted by checkitout View Post
    Thanks Hannible

    Just curious to understand this a little better - a am a newbie and learning on linux stuff

    1.
    "/usr/local/bin/oscam -b -c" --> this shows a path to oscam the "program" what does the "-b" and "-c" do?
    -b says start in background & -c says take next argument as the configuration directory.

    2.
    "/usr/local/etc/ &" ---> yes there is a path to the oscam files what does the "&" do
    Run this command in the background.

    3.
    exit 0 ---> ... I have no idea on this is for?
    Returns an exit state of zero - ie. a successful completion.

  • The Following 3 Users Say Thank You to jgm For This Useful Post:

    checkitout (29-05-11),james9813 (31-05-11),stefki (09-06-11)

  • Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •