Pages

Monday, May 31, 2010

CCcam (x86) init script for RedHat based Distros

To install it, just create a file called /etc/init.d/CCcamd and paste in the script below. Make sure the config and binary variables at the top match your locations. I kept mine in the default spots /var/bin and /var/etc. Then install it using the command "chkconfig --add CCcamd"

You can then start, stop and restart the server using the redhat service command. For example: "service CCcamd restart" or just run the script directly with start, stop or restart switches.

###################################################
#!/bin/sh

# Uncomment the following to debug
#set -x

## CCcamd startup script

# chkconfig: 2345 11 30
# description: CCcamd 2.0.8 sysv startup script for redhat based distros

. /etc/rc.d/init.d/functions

CCCAM="/var/bin/CCcam_2.0.8"
CCCAM_CONFIG="/var/etc/CCcam.cfg"
LOCKFILE="/var/lock/subsys/CCcamd"

start() {

# Start CCcam server
echo -n "Starting CCcamd"

if [ -f $LOCKFILE ] ; then
echo
echo -ne "Lock file exists. Try a restart instead."
echo_failure ; echo
exit -1
fi

$CCCAM -C $CCCAM_CONFIG -f
touch $LOCKFILE
echo_success ; echo
}

stop() {
echo -n "Stopping CCcamd"
killproc $CCCAM
rm -f $LOCKFILE
echo_success ; echo
}

debug() {
echo -n "Starting CCcamd (Debug Mode)" ; echo
if [ -f $LOCKFILE ] ; then
echo
echo -ne "Lockfile exists. Restarting in debug mode"
sleep 2
killproc $CCCAM
rm -f $LOCKFILE
$CCCAM -C $CCCAM_CONFIG -f -d
echo_success ; echo
fi
$CCCAM -C $CCCAM_CONFIG -f -d
echo_success ; echo
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
debug)
debug
;;
*)
echo $"Usage: $0 {start|stop|status|restart}"
esac
exit

Monday, May 17, 2010

HomeCast eM-152USNA Receiver

HomeCast eM-152USNA Receiver

Serial No: HCY6C78COMSOFNASF00????

IRD NO: 16 ???? 2102 24

CARD NO: 09 ???? 3053 71


mAIN ic cHiP Set:


STi 5107LYA
M28w329FS T701a6 (Memory)
D1216AJTA (DDR DRAm )


VOLTAGE CHECK !!!! J150 or Con2


J5 20 pins ---> Possible for JTAG port !!!








http://www.filecrop.com/search.php?w=jtag%20utility&opt_t=1&opt_d=0&c=30&m=&size_i=&size_f=&engine_r=&engine_m=&pos=1&order=score&mod=dec

Wednesday, May 12, 2010

Dm500s Script Compilation

1. Reboot and Stand by
2. Start-stop Oscam Script
3.
4.



##########################
Reboot and Stand by
#########################

make with notepad and save time_reboot.sh and next put in dream var/scripts

#begin script for reboot at 04 am



strHour="04"
strMin="00"

while true
do
DateSTR=`date +%H%M%S`
#echo "$DateSTR"
if [ "$DateSTR" -ge "$strHour$strMin"00 ] && [ "$DateSTR" -le "$strHour$strMin"10 ]; then
echo "its time to reboot"
#shutdown -r now
reboot
exit 0
else
#echo "do sleeping"
sleep 8
fi
done

#end script







#begin for standby 4h:10m am


#!/bin/sh

strHour="04"
strMin="10"

while true
do
DateSTR=`date +%H%M%S`
#echo "$DateSTR"
if [ "$DateSTR" -ge "$strHour$strMin"00 ] && [ "$DateSTR" -le "$strHour$strMin"10 ]; then
#echo "its time to sleep"
sleep 8
fi
exit 0
else
#echo "its time to sleep"
sleep 8
fi
done


#end plugin standby






Add as inadyn_script.sh in map /var/script/

DYN_SYSTEM=dyndns@dyndns.org
/var/script/reboot_timer.sh &

test -f $DAEMON || exit 0

set -e


############################################
Start-stop Oscam Script
##########################################
No, pli hasn't got it via the blue panel. You have to put it there manually creating an empty file /etc/plimgr/cardservers/oscam
The below was posted by davo a while ago.

1. upload oscam binary in /usr/bin (chmod 0755)

2. create empty file /etc/plimgr/cardservers/oscam
# touch /etc/plimgr/cardservers/oscam

3. create script /etc/plimgr/scripts/oscam to start oscam (chmod 0755)


#!/bin/sh

case "$1" in
start)
echo "Starting oscam"
/usr/bin/oscam -b -c /etc/tuxbox/config
;;
stop)
echo "Stopping oscam"
killall oscam 2>/dev/null
;;
*)
$0 stop
exit 1
;;
esac

exit 0
##############################