Hello Guest, if you reading this it means you have not yet registered. Please take a second to Click here to register and in a few simple steps, you will be able to enjoy all the many features of our fine community. Please introduce yourself in the section for you to meet our community.
oscam restart script for enigma2

Welcome to the Satellite & IPTV Forum - Cam-Sats.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Results 1 to 1 of 1
  1. #1
    Status
    Offline
    guli's Avatar
    CS Registered User Country: UK
    Join Date
    Nov 2013
    Receiver
    Vu solo2
    Image
    Blackhole
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    oscam restart script for enigma2

    Here is a script for enigma2 to restart standalone oscam or oscam/CCcam combo. as the combo really starts oscam initially so CCcam will start along side it .
    As i say this script will restart the combo of oscam/CCcam or a standalone oscam .

    1. first you need to install the cronmanager & then the script via the ipk files .
    2. now you need to open your ftp programme & go to /usr/script where you will find oscamcheck.sh
    3. right click it & give it chmodd 755 if not already done .
    4. right click it & open it & edit the oscam name only to suit the exact name you have in /usr/bin . check the same for CCcam in /usr/bin .
    5.eg: in /usr/bin if your oscam is simply called oscam then you do nothing , but if say your oscam is called oscam9162 then you need to name the 4 lines in the script as oscam9162 .
    6. the script :
    ###########systemlinuxs#########!
    #!/bin/sh
    if ps x |grep -v grep |grep -c oscam9162>/dev/null
    then
    echo "oscam9162... ok"
    else
    echo "oscam9162... restarting"
    /usr/bin/oscam9162 &
    fi
    sleep 10
    if ps x |grep -v grep |grep -c CCcam213 >/dev/null
    then
    echo "cccam... ok"
    else
    echo "cccam... restarting"
    /usr/bin/CCcam213 &
    fi

    7. now we need to go to /etc/cron/crontabs/root & open the file making sure it has chmodd 755 , if so put this line in */5 * * * * /usr/script/./oscamcheck.sh this will check to see if your oscam is running every 5 minutes .
    if not it will restart oscam aotomatically .
    8. now we need to config our cronmanager which you will find in plugins .
    9. make sure your cronmanager is running by simply opening the programme & going to restart options & stopping/starting it to be sure .
    10. at the top you will see list crontab , in there you should see */5 * * * * /usr/script/./oscamcheck.sh if so all is good so far .
    10. now simply go to telnet & type killall -9 oscam9162 & hit enter . this will stop your oscam from running & within 5 minutes you should have oscam running again.
    11. now simply go to telnet & type killall -9 CCcam213 & hit enter . this will stop your CCcam from running & within 5 minutes you should have CCcam running again .
    12. just to make it a shorter wait for you whilst testing you can put this line in oscamcheck.sh */1 * * * * /usr/script/./oscamcheck.sh this will restart after 1 minute .
    13. you can manually restart oscam via telnet by simply typing oscam9162 -b now hit enter .
    14. you can maually restart CCcam via telnet by simply typing CCcam213 -v now hit enter .
    15. or via telnet using your script to see if it works by typing /usr/script/oscamcheck.sh now hit enter .
    16. hope this helps all viewing .

    thanks to systemlinuxs for the script .

    edited the script to include the CCcam part of the script .

    Attached Files Attached Files
    Last edited by guli; 13-04-14 at 12:55 AM.

 

 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Visitors found this page by searching for:

oscam restart

oscam check restart script

oscam restart script enigma2

oscam cron neu starten

cccam restart script enigma2

reset enigma2 telnet

enigma2 camscript

how to make oscam start first before other cams enigma2

restart cccam via telnet engima2

start oscam telnet

e2 oscam restart

search for oscam using telnet

SEO Blog

Tags for this Thread

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
  •  
Back to Top