1. Bin-ul oscam se afla in locatia /usr/bin si va avea atribut 755
2. Scriptul de pornire oscam va transfera in locatia /etc/ init.d, va avea atribut 755, va avea numele softcam.oscam si va contine urmatoarele linii:
Code: Select all
#!/bin/sh
case "$1" in
start)
ulimit -s 512
exec start-stop-daemon -S -x /usr/bin/oscam -- -b -r 2 -c /etc/tuxbox/config
;;
stop)
exec start-stop-daemon -K -R 2 -x /usr/bin/oscam &
sleep 2
killall -9 oscam 2>/dev/null
sleep 2
rm -rf /tmp/.oscam
;;
restart|reload)
$0 stop
sleep 1
$0 start
;;
version)
echo "1.20"
;;
info)
echo "oscam"
;;
*)
echo "Usage: $0 start|stop|restart"
exit 1
;;
esac
exit 0
3. Fisierele de configurare oscam (oscam.conf; oscam.server; oscam.user... etc) se pun in /etc/tuxbox/config si vor avea atribut 644
4. Start oscam
Buton Albastru - Softcam setup - Select Softcam ( se alege cam-ul ) - OK ( buton verde )