Um das Thema nach 2 1/2 abzuschließen, hier eine Startdatei, für alle künftigen Suchende..
Ich stand vor dem selben Problem, und habe einfach die vorhandene CCCam.emu für OSCam angepasst. Voíla funktioniert.
Zur Einfachheit halber habe ich am Anfang des Script zudem eine Variable für die config beigefügt, so kann man noch selbst bestimmen wo die config liegen soll.
Ich stand vor dem selben Problem, und habe einfach die vorhandene CCCam.emu für OSCam angepasst. Voíla funktioniert.
Zur Einfachheit halber habe ich am Anfang des Script zudem eine Variable für die config beigefügt, so kann man noch selbst bestimmen wo die config liegen soll.
#!/bin/sh
########################################
###### Powered by NewNigma2 Team ######
###
########################################
# modified for OSCam 11517 by Shortycc @digital-eliteboard.com
# Name wie er im Emu Menü angezeigt wird
EMUNAME="OScam"
# Namen der Binary Datei (in /usr/bin/)
binary="oscam"
config="/etc/tuxbox/config"
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/ecm0.info
[ -e /tmp/.oscam ] && rm -rf /tmp/.oscam
[ -e /tmp/oscam.log ] && rm -rf /tmp/oscam.log
[ -e /tmp/oscamuser.log ] && rm -rf /tmp/oscamuser.log
}
case "$1" in
start)
echo "[SCRIPT] $1: $EMUNAME"
/usr/bin/$binary -b -r -c $config
sleep
;;
stop)
kill `pidof $binary`
sleep 2
pidof $binary >> kill -9 `pidof $binary`
remove_tmp
;;
restart)
$0 stop
sleep 2
$0 start
exit 1
;;
*)
$0 stop
exit 1
;;
esac
exit 0
########################################
###### Powered by NewNigma2 Team ######
###
Sie müssen registriert sein, um Links zu sehen.
###########################################
# modified for OSCam 11517 by Shortycc @digital-eliteboard.com
# Name wie er im Emu Menü angezeigt wird
EMUNAME="OScam"
# Namen der Binary Datei (in /usr/bin/)
binary="oscam"
config="/etc/tuxbox/config"
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/ecm0.info
[ -e /tmp/.oscam ] && rm -rf /tmp/.oscam
[ -e /tmp/oscam.log ] && rm -rf /tmp/oscam.log
[ -e /tmp/oscamuser.log ] && rm -rf /tmp/oscamuser.log
}
case "$1" in
start)
echo "[SCRIPT] $1: $EMUNAME"
/usr/bin/$binary -b -r -c $config
sleep
;;
stop)
kill `pidof $binary`
sleep 2
pidof $binary >> kill -9 `pidof $binary`
remove_tmp
;;
restart)
$0 stop
sleep 2
$0 start
exit 1
;;
*)
$0 stop
exit 1
;;
esac
exit 0