Jump to content


Photo

MBox on openpli?


  • Please log in to reply
3 replies to this topic

#1 Mendiaco

  • Member
  • 3 posts

0
Neutral

Posted 17 November 2012 - 08:38

Anybody can tell me where I can find MBox?

I tried to install (manually) but it doesen't work. thanks.

Re: MBox on openpli? #2 alsat1

  • Senior Member
  • 221 posts

+1
Neutral

Posted 17 November 2012 - 22:29

What steps have you done by install manually?

Re: MBox on openpli? #3 Mendiaco

  • Member
  • 3 posts

0
Neutral

Posted 18 November 2012 - 14:44

I install in var/bin mbox.. Permission 755
In var/script/mbox.sh
My code is:



#!/bin/sh

CAMNAME="Mboxg-4-0023r3"

remove_tmp () {
rm -rf /tmp/ecm.info /tmp/pid.info /tmp/*mbox*
}

case "$1" in
start)
echo "[SCRIPT] $1: $CAMNAME"
remove_tmp
sed -i '/A: { 1 }/d' /usr/keys/mbox.cfg
if ! grep '^P:.*' /usr/keys/mbox.cfg > /dev/null
then
echo "P: { 2/tmp/camd.socket }" >> /usr/keys/mbox.cfg
fi
/usr/bin/mbox
;;
stop)
echo "[SCRIPT] $1: $CAMNAME"
touch /tmp/mbox.kill
sleep 5
killall -9 mbox 2>/dev/null
remove_tmp
;;
*)
$0 stop
exit 1
;;
esac

exit 0


in usr/keys mbox,cfg permission 644
in etc/ mbox.cfg permission644

Any idea?
Thanks.

Re: MBox on openpli? #4 alsat1

  • Senior Member
  • 221 posts

+1
Neutral

Posted 18 November 2012 - 15:01

Scirpts for softcams are in etc\init.d and should name softcam.mbox.
Binary are in usr/bin/.

Try this script:

softcam.mbox

#!/bin/sh

CAMNAME="mbox"

remove_tmp () {
	rm -rf /tmp/ecm.info /tmp/pid.info /tmp/*mbox*
}

case "$1" in
	start)
	echo "[SCRIPT] $1: $CAMNAME"
	remove_tmp
	start-stop-daemon --start --quiet --background --exec /usr/bin/mbox
	;;
	stop)
	echo "[SCRIPT] $1: $CAMNAME"
	touch /tmp/mbox.kill
	killall -9  mbox
		sleep 3
	remove_tmp
	;;
	*)
	$0 stop
	exit 1
	;;
esac

exit 0

rename You bin to simply mbox and chmod 755

Mayby it will work.regards.

Edited by alsat1, 18 November 2012 - 15:01.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users