Wednesday, June 22, 2011

How to - Oscam + Mgcamd1.35a start/stop cam script . Enigma 2

How to - Oscam + Mgcamd1.35a start/stop cam script . Enigma 2

How to - Oscam + Mgcamd1.35a start/stop cam script . Enigma 2

This is a simple script for those enigma 2 images without cam + cardserver options in the softcam menu from blue button. You can still start/stop etc from blue button by simply modifying your existing script on your receiver. The scripts in enigma 2 on most images are in /usr/camscript. You can simply use your favourite editor to amend the scripts already contained on the box.

This script will start oscam first and then add a 15 second delay until starting mgcamd which allows oscam to take control of the internal readers.

The other benefit is that it enables you to install your own compiled oscam for your sat receiver and you dont have to rely on addon panels etc which contain old or buggy oscam versions.







#!/bin/sh
remove_tmp () {
rm -rf /tmp/ecm.info /tmp/pid.info /tmp/cardinfo
}
case "$1" in
start)
remove_tmp
/var/bin/oscam &
sleep 15
/var/bin/mgcamd_1.35a &
;;
stop)
touch /tmp/mgcamd_1.35a.kill
sleep 5
killall -9 mgcamd_1.35a oscam 2>/dev/null
sleep 2
remove_tmp
;;
*)
$0 stop
exit 1
;;
esac
exit 0

No comments:

Post a Comment