OSCam/de/scripts/Dreambox: Unterschied zwischen den Versionen

Aus Streamboard Wiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
 
(5 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 2: Zeile 2:
{{OSCamHomeLinks}}
{{OSCamHomeLinks}}


= Dreambox =
== Dreambox ==
== Dreambox (mipsel) mit newnigma-Image ==
=== Dreambox (mipsel) mit newnigma-Image ===
* Binary "oscam" nach "/usr/bin/" kopieren und 755 chmoden.
* Binary "oscam" nach "/usr/bin/" kopieren und 755 chmoden.
* "oscam.emu" nach "/usr/script/" kopieren und 755 chmoden.
* "oscam.emu" nach "/usr/script/" kopieren und 755 chmoden.
* Configs nach "/var/keys" (Symlink auf /usr/keys) kopieren.
* Configs nach "/var/keys" (Symlink auf /usr/keys) kopieren.
* SoftCAM "oscam" über das Menü auswählen.
* SoftCAM "oscam" über das Menü auswählen.
<syntaxhighlight lang="bash">
#!/bin/sh
# EMUNAME (only the displayed name)
EMUNAME="OSCam"
# Process/Program name
PROCNAME="oscam"


=== oscam.emu ===
#!/bin/sh
########################################
#              10/03/28              #
#        /usr/script/oscam.emu        #
#          /usr/bin/oscam            #
########################################
EMUNAME="OSCam 0.99.4" # dient nur zur Anzeige
EMUPS="oscam"          # Prozessname
remove_tmp ()
{
    rm -f /tmp/oscam* >/dev/null
    rm -f /tmp/ecm.* >/dev/null
    rm -f /tmp/pmt.* >/dev/null
}
case "$1" in
    start)
        echo "[SCRIPT] $1: $EMUNAME"
        remove_tmp
        sleep 1
        /usr/bin/oscam -c /var/keys >/dev/null &
        ;;
    stop)
        echo "[SCRIPT] $1: $EMUNAME"
        if [ -e /tmp/oscam.pid ]; then
            kill -15 $(cat /tmp/oscam.pid)
        fi
        i=5
        while expr $i != 0 >/dev/null; do
            if ! pidof $EMUPS >/dev/null; then
                break
            fi
            i=`expr $i - 1`
            sleep 1
        done
        if pidof $EMUPS >/dev/null; then
            killall -9 $EMUPS
        fi
        remove_tmp
        ;;
    restart)
        $0 stop
        sleep 1
        $0 start
        exit
        ;;
    *)
        $0 stop
        exit 1
        ;;
esac
exit 0


remove_tmp () {
  [ -e /tmp/ecm.info ]        && rm -f /tmp/ecm.info
  [ -e /tmp/ecm0.info ]      && rm -f /tmp/ecm0.info
  [ -e /tmp/ecm1.info ]      && rm -f /tmp/ecm1.info
  [ -e /tmp/oscam.log ]      && rm -f /tmp/oscam.log
  [ -e /tmp/oscam.log-prev ]  && rm -f /tmp/oscam.log-prev
  [ -e /tmp/oscamuser.log ]  && rm -f /tmp/oscamuser.log
  [ -d /tmp/.oscam ]          && rm -fr /tmp/.oscam
}


== Dreambox mit Gemini(IHAD)-Image (thx 2 pin1) ==
case "$1" in
  start)
    confDir=''
    echo "[SCRIPT] $1: $EMUNAME"
    if [ ! -z "`pidof $PROCNAME`" ]; then
      echo "$PROCNAME already running..."
    else
      if [ -s /usr/keys/oscam.conf ]; then
        confDir='/usr/keys'
      elif [ -s /etc/oscam.conf ]; then
        confDir='/etc'
      elif [ -s /var/keys/oscam.conf ]; then
        confDir='/var/keys'
      elif [ -s /etc/tuxbox/config/oscam.conf ]; then
        confDir='/etc/tuxbox/config'
      fi
      if [ ! -z "$confDir" ] && [ -d $confDir ]; then
        remove_tmp
        /usr/bin/$PROCNAME -c $confDir > /dev/null 2>&1 &
      else
        echo "ERROR: Config not found!"
      fi
    fi
  ;;
  stop)
    echo "[SCRIPT] $1: $EMUNAME"
    if [ -z "`pidof $PROCNAME`" ]; then
      echo "$PROCNAME not running..."
    else
      kill `pidof $PROCNAME`
      sleep 2
    fi
    if [ ! -z "`pidof $PROCNAME`" ]; then
      kill -9 `pidof $PROCNAME`
    fi
    remove_tmp
  ;;
  restart)
    $0 stop
    sleep 2
    $0 start
  ;;
  *)
    echo "Usage: $0 start|stop|restart"
    exit 1
  ;;
esac
 
exit 0
</syntaxhighlight>
 
=== Dreambox mit Gemini(IHAD)-Image (thx 2 pin1) ===
* Binary "oscam" nach "/usr/bin/" kopieren und 755 chmoden.
* Binary "oscam" nach "/usr/bin/" kopieren und 755 chmoden.
* "oscam_cam.sh" nach "/usr/script/" kopieren und 755 chmoden.
* "oscam_cam.sh" nach "/usr/script/" kopieren und 755 chmoden.
* Configs nach "/var/keys" (Symlink auf /usr/keys) kopieren.
* Configs nach "/var/keys" (Symlink auf /usr/keys) kopieren.
* SoftCAM "oscam" über das Menü auswählen.
* SoftCAM "oscam" über das Menü auswählen.
==== oscam_cam.sh ====
<syntaxhighlight lang="bash">
#!/bin/sh
CAMD_ID=1793
CAMD_NAME="OSCam"
CAMD_BIN=oscam
INFOFILE_A=ecm0.info
INFOFILE_B=ecm1.info
INFOFILE_C=ecm2.info
INFOFILE_D=ecm3.info
#Expert window
INFOFILE_LINES=1111111111000000
#Zapp after start
REZAPP=0
########################################
logger $0 $1
echo $0 $1
remove_tmp () {
  rm -rf /tmp/*.info* /tmp/*.tmp*
}
case "$1" in
    start)
        remove_tmp
        /usr/bin/$CAMD_BIN -c /var/keys &
        ;;
    stop)
        killall -9 $CAMD_BIN 2>/dev/null
        sleep 2
        remove_tmp
        ;;
    *)
        $0 stop
        exit 0
        ;;
esac
exit 0
</syntaxhighlight>




=== oscam_cam.sh ===
{{OSCamTranslatedLinks}}
#!/bin/sh
CAMD_ID=1793
CAMD_NAME="OSCam"
CAMD_BIN=oscam
INFOFILE_A=ecm0.info
INFOFILE_B=ecm1.info
INFOFILE_C=ecm2.info
INFOFILE_D=ecm3.info
#Expert window
INFOFILE_LINES=1111111111000000
#Zapp after start
REZAPP=0
########################################
logger $0 $1
echo $0 $1
remove_tmp () {
  rm -rf /tmp/*.info* /tmp/*.tmp*
}
case "$1" in
  start)
  remove_tmp
  /usr/bin/$CAMD_BIN -c /var/keys &
  ;;
  stop)
  killall -9 $CAMD_BIN 2>/dev/null
  sleep 2
  remove_tmp
  ;;
  *)
  $0 stop
  exit 0
  ;;
esac
exit 0

Aktuelle Version vom 5. September 2014, 17:47 Uhr

OSCam Übersicht OSCam Home OSCam Accueil OSCam Home

Dreambox

Dreambox (mipsel) mit newnigma-Image

  • Binary "oscam" nach "/usr/bin/" kopieren und 755 chmoden.
  • "oscam.emu" nach "/usr/script/" kopieren und 755 chmoden.
  • Configs nach "/var/keys" (Symlink auf /usr/keys) kopieren.
  • SoftCAM "oscam" über das Menü auswählen.

<syntaxhighlight lang="bash">

  1. !/bin/sh
  2. EMUNAME (only the displayed name)

EMUNAME="OSCam"

  1. Process/Program name

PROCNAME="oscam"


remove_tmp () {

 [ -e /tmp/ecm.info ]        && rm -f /tmp/ecm.info
 [ -e /tmp/ecm0.info ]       && rm -f /tmp/ecm0.info
 [ -e /tmp/ecm1.info ]       && rm -f /tmp/ecm1.info
 [ -e /tmp/oscam.log ]       && rm -f /tmp/oscam.log
 [ -e /tmp/oscam.log-prev ]  && rm -f /tmp/oscam.log-prev
 [ -e /tmp/oscamuser.log ]   && rm -f /tmp/oscamuser.log
 [ -d /tmp/.oscam ]          && rm -fr /tmp/.oscam

}

case "$1" in

 start)
   confDir=
   echo "[SCRIPT] $1: $EMUNAME"
   if [ ! -z "`pidof $PROCNAME`" ]; then
     echo "$PROCNAME already running..."
   else
     if [ -s /usr/keys/oscam.conf ]; then
       confDir='/usr/keys'
     elif [ -s /etc/oscam.conf ]; then
       confDir='/etc'
     elif [ -s /var/keys/oscam.conf ]; then
       confDir='/var/keys'
     elif [ -s /etc/tuxbox/config/oscam.conf ]; then
       confDir='/etc/tuxbox/config'
     fi
     if [ ! -z "$confDir" ] && [ -d $confDir ]; then
       remove_tmp
       /usr/bin/$PROCNAME -c $confDir > /dev/null 2>&1 &
     else
       echo "ERROR: Config not found!"
     fi
   fi
 ;;
 stop)
   echo "[SCRIPT] $1: $EMUNAME"
   if [ -z "`pidof $PROCNAME`" ]; then
     echo "$PROCNAME not running..."
   else
     kill `pidof $PROCNAME`
     sleep 2
   fi
   if [ ! -z "`pidof $PROCNAME`" ]; then
     kill -9 `pidof $PROCNAME`
   fi
   remove_tmp
 ;;
 restart)
   $0 stop
   sleep 2
   $0 start
 ;;
 *)
   echo "Usage: $0 start|stop|restart"
   exit 1
 ;;

esac

exit 0 </syntaxhighlight>

Dreambox mit Gemini(IHAD)-Image (thx 2 pin1)

  • Binary "oscam" nach "/usr/bin/" kopieren und 755 chmoden.
  • "oscam_cam.sh" nach "/usr/script/" kopieren und 755 chmoden.
  • Configs nach "/var/keys" (Symlink auf /usr/keys) kopieren.
  • SoftCAM "oscam" über das Menü auswählen.

oscam_cam.sh

<syntaxhighlight lang="bash">

  1. !/bin/sh

CAMD_ID=1793 CAMD_NAME="OSCam" CAMD_BIN=oscam

INFOFILE_A=ecm0.info INFOFILE_B=ecm1.info INFOFILE_C=ecm2.info INFOFILE_D=ecm3.info

  1. Expert window

INFOFILE_LINES=1111111111000000

  1. Zapp after start

REZAPP=0

logger $0 $1 echo $0 $1

remove_tmp () {

 rm -rf /tmp/*.info* /tmp/*.tmp*

}

case "$1" in

   start)
       remove_tmp
       /usr/bin/$CAMD_BIN -c /var/keys &
       ;;
   stop)
       killall -9 $CAMD_BIN 2>/dev/null
       sleep 2
       remove_tmp
       ;;
   *)
       $0 stop
       exit 0
       ;;

esac exit 0 </syntaxhighlight>


Diese Seite in anderen Sprachen - This page in other languages - Cette page dans d'autres langues - Queste pagine in altre Lingue

[[OSCam/de/{{#titleparts:OSCam/de/scripts/Dreambox|3|3}}|Deutsch]] [[OSCam/en/{{#titleparts:OSCam/de/scripts/Dreambox|3|3}}|English]] [[OSCam/fr/{{#titleparts:OSCam/de/scripts/Dreambox|3|3}}|Français]] [[OSCam/it/{{#titleparts:OSCam/de/scripts/Dreambox|3|3}}|Italiano]]