PDA

View Full Version : tm9100 linux



harrycoates6
24-08-2009, 12:13 PM
how do's one upload a cccam bin file to tm9100 linux.any help with this and any help with editing this




his script will work on most linux dist. including enigma1/2.
The script will check if the CCCam proccess are running with a crontab and restart CCcam if stopped for some reason.

Upload checkcccam.sh and place it under /bin. chmod with 755


Modify these 3 lines inside checkccam.sh to fit your local settings for paths and name of cccam file:

CCCAM_CONFIG_FILE_PATH="/etc"
This is the path where your Cccam.cfg file are located

CCCAM_EXECUTABLE_PATH="/bin"
This is the path where your Cccam.ppc/Cccam.x86 file are located

NAME_OFF_CCCAM_EXECUTABLE="CCcam.x86"
This is the name of your Cccam bin.file.
# crontab -e


Then make a crontab to run this script every 1 min.:

# crontab -e

Insert this line and save the file:
* * * * * /bin/checkcccam.sh


Try to kill your cccam process and check that it starts again in max. 1 min.












#!/bin/bash
CCCAM_CONFIG_FILE_PATH="/etc"
CCCAM_EXECUTABLE_PATH="/bin"
NAME_OFF_CCCAM_EXECUTABLE="CCcam.x86"
# crontab -e
function Check_CCcam {
ps -eo comm,pid,etime > tmpcat
PID=$(grep -i $NAME_OFF_CCCAM_EXECUTABLE tmpcat | awk -F" " '{ print $2}')
TIME=$(grep -i $NAME_OFF_CCCAM_EXECUTABLE tmpcat | awk -F" " '{ print $3}')
}
#
Check_CCcam
if [ "$PID" = "" ]; then
cd $CCCAM_EXECUTABLE_PATH
./$NAME_OFF_CCCAM_EXECUTABLE -C $CCCAM_CONFIG_FILE_PATH/CCcam.cfg
fi
exit 0

tr8.
24-08-2009, 07:09 PM
you dont say which image you are using?
most will loadable off the various servers

harrycoates6
25-08-2009, 11:40 AM
edg-nemesis

redrobin
25-08-2009, 02:28 PM
see this post

https://www.satpimps.co.uk/showpost.php?p=644556&postcount=6

you need to copy the file extra.url to /var/etc

harrycoates6
25-08-2009, 03:54 PM
thanks tnt

harrycoates6
25-08-2009, 05:07 PM
there is a lot of talk about chmod 755 i have tried to upload cccam.sh . to bin dir loader only updates img files so can someone explain how this is done & how this chmod 755 is done & where. i have asked a few questions that may have been trivial but being new to tm9100s & linux one has to learn somehow so bear with me when i keep asking the hows & wheres & what with