Mgcamd 1.33 EMU

Benjamin

Registered
Messages
7
I am using Mgcamd 1.33 EMU, but in SifTeam panel menu "Set CAM"
Start Cam/Stop Cam option does not work for this EMU version. BTW it was OK with old 1.31 version.
Below is the script for that. Can any one familiar with that say what is wrong???

#!/bin/sh

export PATH=$PATH:.:/var/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.:/var/lib

cd /tmp/

start_emu() {
# per il doppio tuner/pip
ln -sf /tmp/pmt1.tmp /tmp/pmt1_1.tmp
ln -sf /tmp/pmt2.tmp /tmp/pmt2_1.tmp
# /per il doppio tuner/pip
mgcamd-1.33 -d -v &
echo mgcamd-1.33 > /var/etc/SifTeam/tmp/cam_active.sif
echo mgcamd-1.33 > /var/tmp/cam_active.sif
sleep 3
}

stop_emu() {
kill -9 `pidof mgcamd-1.33`
sleep 2
killall -9 mgcamd-1.33
rm -rf /tmp/mgcamd*
rm -rf /tmp/*.info
rm -f /var/tmp/cam_active.sif
sleep 2
}

case "$1" in
start)
start_emu
;;
stop)
stop_emu
;;
restart)
$0 stop
sleep 5
$0 start
;;
*)
echo "usage: {start|stop|restart}"
;;
esac

exit 0
 
Top