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

Aus Streamboard Wiki
Zur Navigation springen Zur Suche springen
 
(2 dazwischenliegende Versionen von einem anderen Benutzer 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"


########################################
 
###### Powered by NewNigma2 Team  ######
remove_tmp () {
###      http://newngima2.to        ###
  [ -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
EMUNAME="OScam"
  [ -e /tmp/oscam.log-prev ] && rm -f /tmp/oscam.log-prev
  [ -e /tmp/oscamuser.log ]   && rm -f /tmp/oscamuser.log
remove_tmp ()
  [ -d /tmp/.oscam ]         && rm -fr /tmp/.oscam
{
}
        [ -e /tmp/ecm.info ] && rm -rf /tmp/ecm.info
 
        [ -e /tmp/ecm0.info ] && rm -rf /tmp/ecm0.info
case "$1" in
        [ -e /tmp/ecm1.info ] && rm -rf /tmp/ecm1.info
  start)
        [ -e /tmp/.oscam ] && rm -rf /tmp/.oscam
    confDir=''
        [ -e /tmp/oscam.log ] && rm -rf /tmp/oscam.log
    echo "[SCRIPT] $1: $EMUNAME"
        [ -e /tmp/oscam.kill ] && rm -rf /tmp/oscam.kill
    if [ ! -z "`pidof $PROCNAME`" ]; then
        [ -e /tmp/oscamuser.log ] && rm -rf /tmp/oscamuser.log
      echo "$PROCNAME already running..."
}
    else
      if [ -s /usr/keys/oscam.conf ]; then
case "$1" in
        confDir='/usr/keys'
        start)
      elif [ -s /etc/oscam.conf ]; then
                echo "[SCRIPT] $1: $EMUNAME"
        confDir='/etc'
                if [ -f /usr/keys/oscam.conf ]; then
      elif [ -s /var/keys/oscam.conf ]; then
                        /usr/bin/oscam -c /usr/keys >/dev/null &
        confDir='/var/keys'
                else
      elif [ -s /etc/tuxbox/config/oscam.conf ]; then
                        /usr/bin/oscam -c /etc/tuxbox/config >/dev/null &
        confDir='/etc/tuxbox/config'
                fi
      fi
                ;;
      if [ ! -z "$confDir" ] && [ -d $confDir ]; then
        stop)
        remove_tmp
                echo "[SCRIPT] $1: $EMUNAME"
        /usr/bin/$PROCNAME -c $confDir > /dev/null 2>&1 &
                echo -n "kill " > /tmp/oscam.kill
      else
                pidof oscam >> /tmp/oscam.kill
        echo "ERROR: Config not found!"
                echo sleep 1s >> /tmp/oscam.kill
      fi
                echo -n "kill -9 " >> /tmp/oscam.kill
    fi
                pidof oscam >> /tmp/oscam.kill
  ;;
                chmod 755 /tmp/oscam.kill
  stop)
                /tmp/oscam.kill
    echo "[SCRIPT] $1: $EMUNAME"
                sleep 2
    if [ -z "`pidof $PROCNAME`" ]; then
                remove_tmp
      echo "$PROCNAME not running..."
                ;;
    else
        restart)
      kill `pidof $PROCNAME`
                $0 stop
      sleep 2
                sleep 1
    fi
                $0 start
    if [ ! -z "`pidof $PROCNAME`" ]; then
                exit 1
      kill -9 `pidof $PROCNAME`
                ;;
    fi
        *)
    remove_tmp
                $0 stop
  ;;
                exit 1
  restart)
                ;;
    $0 stop
esac
    sleep 2
    $0 start
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 70: 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]]