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

Aus Streamboard Wiki
Zur Navigation springen Zur Suche springen
K (Überschriften und Absätze angepasst)
 
(3 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 8: Zeile 8:
* 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
remove_tmp () {
########################################
  [ -e /tmp/ecm.info ]        && rm -f /tmp/ecm.info
#              10/03/28              #
  [ -e /tmp/ecm0.info ]      && rm -f /tmp/ecm0.info
#        /usr/script/oscam.emu        #
  [ -e /tmp/ecm1.info ]      && rm -f /tmp/ecm1.info
#          /usr/bin/oscam             #
  [ -e /tmp/oscam.log ]      && rm -f /tmp/oscam.log
########################################
  [ -e /tmp/oscam.log-prev ] && rm -f /tmp/oscam.log-prev
EMUNAME="OSCam 0.99.4" # dient nur zur Anzeige
  [ -e /tmp/oscamuser.log ]  && rm -f /tmp/oscamuser.log
EMUPS="oscam"          # Prozessname
  [ -d /tmp/.oscam ]          && rm -fr /tmp/.oscam
   
}
remove_tmp ()
 
{
case "$1" in
    rm -f /tmp/oscam* >/dev/null
  start)
    rm -f /tmp/ecm.* >/dev/null
    confDir=''
    rm -f /tmp/pmt.* >/dev/null
    echo "[SCRIPT] $1: $EMUNAME"
}
    if [ ! -z "`pidof $PROCNAME`" ]; then
      echo "$PROCNAME already running..."
case "$1" in
    else
    start)
      if [ -s /usr/keys/oscam.conf ]; then
        echo "[SCRIPT] $1: $EMUNAME"
        confDir='/usr/keys'
        remove_tmp
      elif [ -s /etc/oscam.conf ]; then
        sleep 1
        confDir='/etc'
        /usr/bin/oscam -c /var/keys >/dev/null &
      elif [ -s /var/keys/oscam.conf ]; then
        ;;
        confDir='/var/keys'
    stop)
      elif [ -s /etc/tuxbox/config/oscam.conf ]; then
        echo "[SCRIPT] $1: $EMUNAME"
        confDir='/etc/tuxbox/config'
        if [ -e /tmp/oscam.pid ]; then
      fi
            kill -15 $(cat /tmp/oscam.pid)
      if [ ! -z "$confDir" ] && [ -d $confDir ]; then
        fi
        remove_tmp
        i=5
        /usr/bin/$PROCNAME -c $confDir > /dev/null 2>&1 &
        while expr $i != 0 >/dev/null; do
      else
            if ! pidof $EMUPS >/dev/null; then
        echo "ERROR: Config not found!"
                break
      fi
            fi
    fi
            i=`expr $i - 1`
  ;;
            sleep 1
  stop)
        done
    echo "[SCRIPT] $1: $EMUNAME"
        if pidof $EMUPS >/dev/null; then
    if [ -z "`pidof $PROCNAME`" ]; then
            killall -9 $EMUPS
      echo "$PROCNAME not running..."
        fi
    else
        remove_tmp
      kill `pidof $PROCNAME`
        ;;
      sleep 2
    restart)
    fi
        $0 stop
    if [ ! -z "`pidof $PROCNAME`" ]; then
        sleep 1
      kill -9 `pidof $PROCNAME`
        $0 start
    fi
        exit
    remove_tmp
        ;;
  ;;
    *)
  restart)
        $0 stop
    $0 stop
        exit 1
    sleep 2
        ;;
    $0 start
esac
  ;;
exit 0
  *)
    echo "Usage: $0 start|stop|restart"
    exit 1
  ;;
esac
 
exit 0
</syntaxhighlight>


=== Dreambox mit Gemini(IHAD)-Image (thx 2 pin1) ===
=== Dreambox mit Gemini(IHAD)-Image (thx 2 pin1) ===
Zeile 71: Zeile 84:


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




{{OSCamTranslatedLinks}}
{{OSCamTranslatedLinks}}

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]]