OSCam/de/scripts/Dreambox
OSCam Übersicht
OSCam Home
OSCam Accueil
OSCam Home
Inhaltsverzeichnis
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">
- !/bin/sh
- EMUNAME (only the displayed name)
EMUNAME="OSCam"
- 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">
- !/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>
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]]