PDA

View Full Version : help structure oscam files



cacash
29-01-13, 11:23
If you want to try to replace the oscam, where the various files of cam?

The config files are: / etc / tuxbox / config
the executable file :/ usr / softcams

I can not find the script file that starts the cam. What is your ritch?

XabiX
29-01-13, 12:06
root@gbquad:~# cat /usr/softcams/Oscam.sh
#!/bin/bash

CAMNAME="Oscam"

remove_tmp () {
rm -rf /tmp/*.info* /tmp/*.tmp*
}

case "$1" in
start)
echo "[SCRIPT] $1: $CAMNAME"
remove_tmp

/usr/bin/oscam -b
;;
stop)
echo "[SCRIPT] $1: $CAMNAME"
killall -9 oscam 2>/dev/null

sleep 1

remove_tmp
;;
*)
$0 stop
exit 0
;;
esac

exit 0