try edit this script with image gemini and cccam 2,6
CAMNAME="CCcam-Gbox"
USERNAME=""
ZAPTIME=6
CAMID=9515
DVBSET=0
INFOFILE="ecm.info"
INFOFILELINES=
# end
remove_tmp () {
rm -rf /tmp/*.info* /tmp/*.tmp*
}
case "$1" in
start)
echo "[SCRIPT] $1: $CAMNAME"
remove_tmp
/var/bin/CCcam_2.0.6 &
sleep 1
/var/bin/CCcam_2.0.6 &
sleep 1
/var/bin/gbox &
sleep 1
/var/bin/gbox &
sleep 1
/var/bin/pmthelper &
sleep 1
;;
stop)
echo "[SCRIPT] $1: $CAMNAME"
killall CCcam_2.0.6 gbox pmthelper 2>/dev/null
sleep 2
remove_tmp
;;
*)
$0 stop
exit 0
;;
esac
exit 0
u can also try with this
CAMNAME="GbOx-CCcam"
USERNAME=""
ZAPTIME=8
CAMID=970
DVBSET=1
INFOFILE="ecm.info"
# end
# This method cleans up /tmp folder of gbox files
remove_tmp ()
{
rm -rf /tmp/*info* /tmp/*gbox* /tmp/*online* /tmp/*share*/tmp/atack* /tmp/debug*
}
# This method starts cardserver_6.5 > CCcam > Gbox (That order)
start_cam ()
{
/var/bin/gbox &
sleep 5
/var/bin/CCcam_2.0.6 &
}
# This method stops newcs cs2gbox and gbox and then calles the tmp cleanup method
stop_cam ()
{
touch /tmp/gbox.kill
/bin/prockill gbox
/bin/prockill CCcam_2.0.6
killall -9 gbox CCcam_2.0.6 2> /dev/null
remove_tmp
}
case "$1" in
start)
echo "[SCRIPT] $1: $CAMNAME"
start_cam
;;
stop)
echo "[SCRIPT] $1: $CAMNAME"
stop_cam
;;
restart)
echo "Restaring $CAMNAME"
stop_cam
start_cam
;;
*)
"$0" stop
exit 1
;;