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

Aus Streamboard Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „Kategorie:OSCam '''The translation for this page is under construction.''' = Dreambox = == Dreambox (mipsel) mit newnigma-Image == * Binary "oscam" nach "/u...“)
 
K (Added pointer to Discussion page.)
 
(6 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
[[Kategorie:OSCam]]
[[Kategorie:OSCam]]
'''The translation for this page is under construction.'''
{{OSCamHomeLinks}}


== Dreambox ==
=== Dreambox (mipsel) with newnigma image ===
* Copy the '''oscam''' binary to '''/usr/bin/''' and ensure it is executable (chmod 755).
* Copy '''oscam.emu''' to '''/usr/script/''' and ensure it is executable (chmod 755).
* Copy the configuration files to '''/var/keys''' (symbolic link to '''/usr/keys''').
* Select "oscam" as your current SoftCAM in the menu.


= 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.
=== oscam.emu ===
#!/bin/sh
  ########################################
  ########################################
  #               10/03/28              #
  ###### Powered by NewNigma2 Team  ######
  #       /usr/script/oscam.emu         #
  ###      http://newngima2.to         ###
#           /usr/bin/oscam            #
  ########################################
  ########################################
  EMUNAME="OSCam 0.99.4" # dient nur zur Anzeige
   
  EMUPS="oscam"         # Prozessname
   
EMUNAME="OScam"
   
   
  remove_tmp ()
  remove_tmp ()
  {
  {
    rm -f /tmp/oscam* >/dev/null
        [ -e /tmp/ecm.info ] && rm -rf /tmp/ecm.info
    rm -f /tmp/ecm.* >/dev/null
        [ -e /tmp/ecm0.info ] && rm -rf /tmp/ecm0.info
    rm -f /tmp/pmt.* >/dev/null
        [ -e /tmp/ecm1.info ] && rm -rf /tmp/ecm1.info
        [ -e /tmp/.oscam ] && rm -rf /tmp/.oscam
        [ -e /tmp/oscam.log ] && rm -rf /tmp/oscam.log
        [ -e /tmp/oscam.kill ] && rm -rf /tmp/oscam.kill
        [ -e /tmp/oscamuser.log ] && rm -rf /tmp/oscamuser.log
  }
  }
   
   
  case "$1" in
  case "$1" in
    start)
        start)
        echo "[SCRIPT] $1: $EMUNAME"
                echo "[SCRIPT] $1: $EMUNAME"
        remove_tmp
                if [ -f /usr/keys/oscam.conf ]; then
        sleep 1
                        /usr/bin/oscam -c /usr/keys >/dev/null &
        /usr/bin/oscam -c /var/keys >/dev/null &
                else
        ;;
                        /usr/bin/oscam -c /etc/tuxbox/config >/dev/null &
    stop)
                fi
        echo "[SCRIPT] $1: $EMUNAME"
                ;;
        if [ -e /tmp/oscam.pid ]; then
        stop)
            kill -15 $(cat /tmp/oscam.pid)
                echo "[SCRIPT] $1: $EMUNAME"
        fi
                echo -n "kill " > /tmp/oscam.kill
        i=5
                pidof oscam >> /tmp/oscam.kill
        while expr $i != 0 >/dev/null; do
                echo sleep 1s >> /tmp/oscam.kill
            if ! pidof $EMUPS >/dev/null; then
                echo -n "kill -9 " >> /tmp/oscam.kill
                 break
                pidof oscam >> /tmp/oscam.kill
            fi
                 chmod 755 /tmp/oscam.kill
            i=`expr $i - 1`
                /tmp/oscam.kill
            sleep 1
                sleep 2
        done
                remove_tmp
        if pidof $EMUPS >/dev/null; then
                ;;
            killall -9 $EMUPS
        restart)
        fi
                $0 stop
        remove_tmp
                sleep 1
        ;;
                $0 start
    restart)
                exit 1
        $0 stop
                ;;
        sleep 1
        *)
        $0 start
                $0 stop
        exit
                exit 1
        ;;
                ;;
    *)
        $0 stop
        exit 1
        ;;
  esac
  esac
  exit 0
  exit 0


=== Dreambox with Gemini image (IHAD) (thanks to pin1) ===
* Copy '''oscam''' binary to '''/usr/bin''' and ensure it is executable (chmod 755).
* Copy '''oscam_cam.sh''' to '''/usr/script''' and ensure it is executable (chmod 755).
* Copy the configuration files to '''/var/keys''' (symbolic link to '''/usr/keys''').
* Select "oscam" as your current SoftCAM in the menu.


== Dreambox mit Gemini(IHAD)-Image (thx 2 pin1) ==
<small>If you fail to copy the above, see the [[Diskussion:OSCam/en/scripts/Dreambox|Discussion page]] for more information.</small>
* 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 ===
==== oscam_cam.sh ====
  #!/bin/sh
  #!/bin/sh
  CAMD_ID=1793
  CAMD_ID=1793
Zeile 114: Zeile 112:
   
   
  exit 0
  exit 0
{{OSCamTranslatedLinks}}

Aktuelle Version vom 16. März 2011, 12:00 Uhr

OSCam Übersicht OSCam Home OSCam Accueil OSCam Home

Dreambox

Dreambox (mipsel) with newnigma image

  • Copy the oscam binary to /usr/bin/ and ensure it is executable (chmod 755).
  • Copy oscam.emu to /usr/script/ and ensure it is executable (chmod 755).
  • Copy the configuration files to /var/keys (symbolic link to /usr/keys).
  • Select "oscam" as your current SoftCAM in the menu.
########################################
###### Powered by NewNigma2 Team  ######
###      http://newngima2.to         ###
########################################


EMUNAME="OScam"

remove_tmp ()
{
        [ -e /tmp/ecm.info ] && rm -rf /tmp/ecm.info
        [ -e /tmp/ecm0.info ] && rm -rf /tmp/ecm0.info
        [ -e /tmp/ecm1.info ] && rm -rf /tmp/ecm1.info
        [ -e /tmp/.oscam ] && rm -rf /tmp/.oscam
        [ -e /tmp/oscam.log ] && rm -rf /tmp/oscam.log
        [ -e /tmp/oscam.kill ] && rm -rf /tmp/oscam.kill
        [ -e /tmp/oscamuser.log ] && rm -rf /tmp/oscamuser.log
}

case "$1" in
        start)
                echo "[SCRIPT] $1: $EMUNAME"
                if [ -f /usr/keys/oscam.conf ]; then
                        /usr/bin/oscam -c /usr/keys >/dev/null &
                else
                        /usr/bin/oscam -c /etc/tuxbox/config >/dev/null &
                fi
                ;;
        stop)
                echo "[SCRIPT] $1: $EMUNAME"
                echo -n "kill " > /tmp/oscam.kill
                pidof oscam >> /tmp/oscam.kill
                echo sleep 1s >> /tmp/oscam.kill
                echo -n "kill -9 " >> /tmp/oscam.kill
                pidof oscam >> /tmp/oscam.kill
                chmod 755 /tmp/oscam.kill
                /tmp/oscam.kill
                sleep 2
                remove_tmp
                ;;
        restart)
                $0 stop
                sleep 1
                $0 start
                exit 1
                ;;
        *)
                $0 stop
                exit 1
                ;;
esac

exit 0

Dreambox with Gemini image (IHAD) (thanks to pin1)

  • Copy oscam binary to /usr/bin and ensure it is executable (chmod 755).
  • Copy oscam_cam.sh to /usr/script and ensure it is executable (chmod 755).
  • Copy the configuration files to /var/keys (symbolic link to /usr/keys).
  • Select "oscam" as your current SoftCAM in the menu.

If you fail to copy the above, see the Discussion page for more information.

oscam_cam.sh

#!/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


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/en/scripts/Dreambox|3|3}}|Deutsch]] [[OSCam/en/{{#titleparts:OSCam/en/scripts/Dreambox|3|3}}|English]] [[OSCam/fr/{{#titleparts:OSCam/en/scripts/Dreambox|3|3}}|Français]] [[OSCam/it/{{#titleparts:OSCam/en/scripts/Dreambox|3|3}}|Italiano]]