gb*x.net script needed
Started by bogyman, 27 Apr 2012 10:58
9 replies to this topic
Re: gb*x.net script needed #2
Posted 27 April 2012 - 12:46
Try this one:
softcam.gbox
softcam.gbox
#!/bin/sh
case "$1" in
start)
sleep 1 ; start-stop-daemon -S -b -x /usr/bin/gbox.mips
;;
stop)
exec start-stop-daemon -K -R 2 -x /usr/bin/gbox.mips
;;
restart|reload)
$0 stop
sleep 1
$0 start
;;
version)
echo "2.25"
;;
info)
echo "gbox 2.25"
;;
*)
echo "Usage: $0 start|stop|restart"
exit 1
;;
esac
exit 0
Re: gb*x.net script needed #3
Re: gb*x.net script needed #4
Posted 28 April 2012 - 08:05
this one seems to work:
and please note that you need libcrypto-compat installed for this cam to run on openpli...
#!/bin/sh CAMNAME="Gbox802" remove_tmp () { rm -rf /tmp/ecm.info /tmp/pid.info /tmp/*gbox* } case "$1" in start) echo "[SCRIPT] $1: $CAMNAME" remove_tmp /usr/bin/gbox.camd & sleep 3 start-stop-daemon --start --quiet --background --exec /usr/bin/gbox ;; stop) echo "[SCRIPT] $1: $CAMNAME" touch /tmp/gbox.kill killall -9 gbox.camd sleep 3 remove_tmp ;; *) $0 stop exit 1 ;; esac exit 0name it eg softcam.Gbox, put in /etc/init.d/ (and don't forget chmod +x)...
and please note that you need libcrypto-compat installed for this cam to run on openpli...
Edited by blzr, 28 April 2012 - 08:11.
True sarcasm doesn't need green font...
Re: gb*x.net script needed #5
Re: gb*x.net script needed #6
Re: gb*x.net script needed #7
Re: gb*x.net script needed #8
Re: gb*x.net script needed #9
Posted 14 July 2012 - 20:50
this one seems to work:
#!/bin/sh CAMNAME="Gbox802" remove_tmp () { rm -rf /tmp/ecm.info /tmp/pid.info /tmp/*gbox* } case "$1" in start) echo "[SCRIPT] $1: $CAMNAME" remove_tmp /usr/bin/gbox.camd & sleep 3 start-stop-daemon --start --quiet --background --exec /usr/bin/gbox ;; stop) echo "[SCRIPT] $1: $CAMNAME" touch /tmp/gbox.kill killall -9 gbox.camd sleep 3 remove_tmp ;; *) $0 stop exit 1 ;; esac exit 0name it eg softcam.Gbox, put in /etc/init.d/ (and don't forget chmod +x)...
and please note that you need libcrypto-compat installed for this cam to run on openpli...
Its working ok that script,both file in usr/bin-gbox and gbox.camd starting and I can made restart,stop or whatever I want in softcam manager but after longest time,about for eg.1 day gbox running I cant stop gbox or restart.I using enigma2-plugin-pli-softcamsetup_3.0-r0,which as I said working ok after fresh full reboot of my dm800se.but when I start gbox via this manager and that script its work but after 1 day I cant do anything,only can stop via telnet killall gbox,its looking like softcam manager dont do antyhing or mayby script no good,but as i said its working all command,restart.stop,start after full reboot.After 1 day no(gbox still running ovcourse)and also restart e2 not helping.
Any suggestion,please?
best regards.
Re: gb*x.net script needed #10
Posted 19 July 2012 - 03:29
i think , correct softcam.gbox must to be like this one ( gbox.net ..and F : { 08 } 1 ) :
---
work well on skin pli-hd or skin m.mod..
#!/bin/sh CAMNAME="Gbox804" remove_tmp () { rm -rf /tmp/ecm.info /tmp/pid.info /tmp/*gbox* } case "$1" in start) sleep 1 ; start-stop-daemon -S -b -x /usr/bin/gbox.mips ;; stop) exec start-stop-daemon -K -R 2 -x /usr/bin/gbox.mips ;; restart|reload) $0 stop sleep 1 $0 start ;; version) echo "804" ;; info) echo "gbox 804" ;; *) echo "Usage: $0 start|stop|restart" exit 1 ;; esac exit 0
---
work well on skin pli-hd or skin m.mod..
Edited by kerven, 19 July 2012 - 03:32.
6 user(s) are reading this topic
0 members, 6 guests, 0 anonymous users