Hi all,
I've been tinkering with tvheadend and CCcam ( a software cam emulator and server for DVB-S ). I have this working now but have one problem. To use the CCcam server i have to run a .sh script (see below).
Cccam.sh
| Code: |
!/bin/bash
case "$1" in
start)
touch /root/CCcam/CCcam.log && chmod 777 /root/CCcam/CCcam.log
LD_PRELOAD=/root/CCcam/capmt_ca.so /root/CCcam/CCcam -d -C /root/CCcam/$
;;
stop)
killall -9 CCcam
esac
;;
*)
echo "Usage: $SCRIPTNAME {start|stop}" >&2
exit 3
;;
esac
|
This script is located in /root/CCcam/Cccam.sh
To start is i run:
| Code: |
~/CCcam/CCcam.sh start
|
The cardserver starts and i can see my scrabled channels. The problem is, when i close my terminal window, the cardserver stops. I've added some rules to /etc/rc.local (see below)
| Code: |
!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
~/CCcam/CCcam.sh start &
#/root/CCcam/CCcam.sh start &
before
exit 0
|
I've treid to start the script from root and ~/ but no succes, it doesnt starts

I've also treid to put the script in /etc/init.d and renamed CCcam.sh to CCcam and chmodded it to 775, no succes. What can i do to run the script at startup/boot ?
Greetz
Barry