1. Diese Seite verwendet Cookies. Wenn du dich weiterhin auf dieser Seite aufhältst, akzeptierst du unseren Einsatz von Cookies. Weitere Informationen

Problema Oscam CCCam Script

Dieses Thema im Forum "OScam (Italiana)" wurde erstellt von antogiar, 9. Januar 2013.

  1. antogiar
    Offline

    antogiar Newbie

    Registriert:
    9. Januar 2013
    Beiträge:
    1
    Zustimmungen:
    0
    Punkte für Erfolge:
    0
    Buongiorno a tutti,
    Sino ad oggi ho avuto un problema con l'avvio di OSCAM e CCcam insieme. Lo script che uso mi faceva partire la CCCam prima di Oscam e il reader interno delle DM era occopato da CCCam.
    Ho risolto il problema momentaneamente installando una nuova versione di oscam, ma volevo sapere se qualcuno potesse gentilmente controllare lo script che uso per dirmi se è corretto:

    Code:
    #!/bin/sh
    ########################################
    ###### Powered by NewNigma2 Team  ######
    ###      [URL]http://newngima2.to[/URL]         ###
    ########################################
    
    
    # EMUNAME is only Display name for EMU Menu
    EMUNAME="CCcam 2.3.0/OScam"
    
    
    remove_tmp ()
    {
        [ -e /tmp/ecm.info ] && rm -rf /tmp/ecm.info
        [ -e /tmp/pid.info ] && rm -rf /tmp/pid.info
        [ -e /tmp/cardinfo ] && rm -rf /tmp/cardinfo
        [ -e /tmp/ecm0.info ] && rm -rf /tmp/ecm0.info
        [ -e /tmp/CCcam.kill ] && rm -rf /tmp/CCcam.kill
        [ -e /tmp/CCcam2_3_0.pid ] && rm -rf /tmp/CCcam2_3_0.pid
        rm -rf /tmp/*.info /tmp/*.tmp*
    }
            
    case "$1" in
        start)
            echo "[SCRIPT] $1: $EMUNAME"
            remove_tmp
            sleep 1
            /usr/bin/oscam >/dev/null &
            sleep 15
            /usr/bin/CCcam2_3_0 >/dev/null &
            pidof CCcam2_3_0 > /tmp/CCcam2_3_0.pid
            ;;
        stop)
            echo "[SCRIPT] $1: $EMUNAME"
            echo -n "kill " > /tmp/CCcam.kill
            pidof CCcam2_1_4 >> /tmp/CCcam.kill
            echo -n "kill -9 " >> /tmp/CCcam.kill
            pidof CCcam2_1_4 >> /tmp/CCcam.kill
            echo -n "kill " >> /tmp/CCcam.kill
            pidof oscam >> /tmp/CCcam.kill
            echo -n "kill -9 " >> /tmp/CCcam.kill
            pidof oscam >> /tmp/CCcam.kill
            chmod 777 /tmp/CCcam.kill
            /tmp/CCcam.kill
            sleep 1
            remove_tmp
            ;;
        restart)
            $0 stop
            sleep 1
            $0 start
            exit
            ;;
        *)
            $1 stop
            exit 1
            ;;
    esac
    
    
    exit 0

    Grazie mille in anticipo.

    Antogiar
     
    Zuletzt von einem Moderator bearbeitet: 9. Januar 2013
    #1
  2. phantom

    Nervigen User Advertisement

  3. meister85
    Offline

    meister85 VIP

    Registriert:
    21. September 2009
    Beiträge:
    7.927
    Zustimmungen:
    5.229
    Punkte für Erfolge:
    113
    AW: Oscam CCCam Script

    Questo mi sembra molto strano:

    Code:
    #!/bin/sh
    ########################################
    ###### Powered by NewNigma2 Team  ######
    ###      [URL]http://newngima2.to[/URL]         ###
    ########################################
    
    
    # EMUNAME is only Display name for EMU Menu
    EMUNAME="CCcam 2.3.0/OScam"
    
    
    remove_tmp ()
    {
        [ -e /tmp/ecm.info ] && rm -rf /tmp/ecm.info
        [ -e /tmp/pid.info ] && rm -rf /tmp/pid.info
        [ -e /tmp/cardinfo ] && rm -rf /tmp/cardinfo
        [ -e /tmp/ecm0.info ] && rm -rf /tmp/ecm0.info
        [ -e /tmp/CCcam.kill ] && rm -rf /tmp/CCcam.kill
        [ -e /tmp/[COLOR=#ff0000]CCcam2_3_0[/COLOR].pid ] && rm -rf /tmp/CCcam2_3_0.pid
        rm -rf /tmp/*.info /tmp/*.tmp*
    }
            
    case "$1" in
        start)
            echo "[SCRIPT] $1: $EMUNAME"
            remove_tmp
            sleep 1
            /usr/bin/oscam >/dev/null &
            sleep 15
            /usr/bin/[COLOR=#ff0000]CCcam2_3_0[/COLOR] >/dev/null &
            pidof [COLOR=#ff0000]CCcam2_3_0[/COLOR] > /tmp/CCcam2_3_0.pid
            ;;
        stop)
            echo "[SCRIPT] $1: $EMUNAME"
            echo -n "kill " > /tmp/CCcam.kill
            pidof [COLOR=#ff0000]CCcam2_1_4[/COLOR] >> /tmp/CCcam.kill
            echo -n "kill -9 " >> /tmp/CCcam.kill
            pidof [COLOR=#ff0000]CCcam2_1_4[/COLOR] >> /tmp/CCcam.kill
            echo -n "kill " >> /tmp/CCcam.kill
            pidof oscam >> /tmp/CCcam.kill
            echo -n "kill -9 " >> /tmp/CCcam.kill
            pidof oscam >> /tmp/CCcam.kill
            chmod 777 /tmp/CCcam.kill
            /tmp/CCcam.kill
            sleep 1
            remove_tmp
            ;;
        restart)
            $0 stop
            sleep 1
            $0 start
            exit
            ;;
        *)
            $1 stop
            exit 1
            ;;
    esac
    
    
    exit 0

    Prendi questo:

    Code:
    #!/bin/sh
    
    CAMNAME="CCcam 2.3.0/Oscam"
    
    remove_tmp () {
      rm -rf /tmp/*.info* /tmp/*.tmp*
    }
    
    case "$1" in
      start)
      echo "[SCRIPT] $1: $CAMNAME"
      remove_tmp
      /usr/bin/oscam &
      sleep 15
      /usr/bin/CCcam_2.3.0 &
      ;;
      stop)
      echo "[SCRIPT] $1: $CAMNAME"
      kill `pidof oscam `
      killall oscam CCcam_2.3.0 2>/dev/null
      sleep 2
      remove_tmp
      ;;
      *)
      $0 stop
      exit 0
      ;;
    esac
    
    exit 0
     
    Zuletzt bearbeitet: 9. Januar 2013
    #2

Diese Seite empfehlen