Anybody can tell me where I can find MBox?
I tried to install (manually) but it doesen't work. thanks.
MBox on openpli?
Started by Mendiaco, 17 Nov 2012 08:38
3 replies to this topic
Re: MBox on openpli? #2
Re: MBox on openpli? #3
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.
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
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
rename You bin to simply mbox and chmod 755
Mayby it will work.regards.
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