N
nonodiagers
Guest
hola compañeros!!
aqui os traigo el siguiente script para poder arrancar las 2 emus a la vez.
esta probado en mi DM800HDse y funciona correctamente.
compartes por los 2 y visionas por CCcam. El script es para la imagen newnigma2.
espero que os sirva de ayuda.
un saludo.
_________________________________________________________________________________
aqui os traigo el siguiente script para poder arrancar las 2 emus a la vez.
esta probado en mi DM800HDse y funciona correctamente.
compartes por los 2 y visionas por CCcam. El script es para la imagen newnigma2.
espero que os sirva de ayuda.
un saludo.
_________________________________________________________________________________
#!/bin/sh
#########################################
###### Powered by NewNigma2 Team ######
###Debes estar registrado para ver enlaces###
#########################################
## config
EMUNAME="CCcam 2.2.1 & gbox"
#--> cam 1
EMUBIN="CCcam2_2_1"
EMUBINARGS=""
PIDFILE="CCcam2_2_1.pid"
#--> cam 2
EMUBIN2="gbox"
EMUBINARGS2=""
PIDFILE2="gbox.pid"
#--> both
TMPREMOVEFILES="ecm.info pid.info cardinfo mg.info mgshare.info mgstat.info ${PIDFILE} \
gbox.ver atack.txt sc.info share.info share.log share.onl share.stat ${PIDFILE2}"
##> do not edit after this line <####> do not edit after this line <##
## funktionen
RemoveTmp ()
{
for _FILE in ${TMPREMOVEFILES}
do
if [ -e /tmp/${_FILE} ]; then
rm -rf /tmp/${_FILE}
fi
done
}
## work
case "$1" in
start)
RemoveTmp
#--> cam 1
if [ -x /usr/bin/${EMUBIN} ]; then
echo "[SCRIPT] $1: $EMUBIN"
/usr/bin/${EMUBIN} ${EMUBINARGS} >/dev/null &
sleep 1
pidof ${EMUBIN} > /tmp/${PIDFILE}
else
echo "[SCRIPT]: $EMUBIN not executable or available"
fi
#--> cam 2
if [ -x /usr/bin/${EMUBIN2} ]; then
echo "[SCRIPT] $1: $EMUBIN2"
/usr/bin/${EMUBIN2} ${EMUBINARGS2} >/dev/null &
sleep 1
pidof ${EMUBIN2} > /tmp/${PIDFILE2}
else
echo "[SCRIPT]: $EMUBIN2 not executable or available"
fi
;;
stop)
echo "[SCRIPT] $1: $EMUNAME"
killall -9 ${EMUBIN} 2>/dev/null
# killall koennte durch "kill `cat /tmp/${PIDFILE}`" ersetz werden. #
killall -9 ${EMUBIN2} 2>/dev/null
# killall koennte durch "kill `cat /tmp/${PIDFILE2}`" ersetz werden. #
RemoveTmp
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
$0 stop
exit 1
;;
esac
exit 0
Última edición por un moderador: