Results 1 to 7 of 7

Thread: Script start/stop oscam pentru new DE/edg !?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Standard RSP member zottya's Avatar
    Join Date
    09 Jun 2007
    Location
    Transylvania
    Posts
    228
    Mentioned
    1 Post(s)
    Rep Power
    70

    Default script

    #!/bin/sh

    CAMNAME="OscamCCcam"

    remove_tmp () {
    rm -rf /tmp/*.info* /tmp/*.tmp*
    }

    case "$1" in
    start)
    echo "[SCRIPT] $1: $CAMNAME"
    remove_tmp
    /usr/bin/oscam &
    sleep 10
    /usr/bin/CCcam &
    ;;
    stop)
    echo "[SCRIPT] $1: $CAMNAME"
    killall -9 oscam CCcam 2>/dev/null
    sleep 1
    remove_tmp
    ;;
    *)
    $0 stop
    exit 0
    ;;
    esac

    exit 0
    Mie imi merge foarte bine scriptul asta, dar la atribut am dat 755 si nu 777.

    In plus mie imi apare mumai la emu :OscamCCcam la cardserver nu am pus nimic.
    Last edited by zottya; 18-02-11 at 21:02. Reason: add

Posting Permissions

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