![Tongue :tong:](http://satelit-info.com/phpBB3/images/smilies/tongue3.gif)
Am folosit si ViX-Softcamsall.ipk , acelasi lucru ,
![noidea :noidea:](http://satelit-info.com/phpBB3/images/smilies/noidea.gif)
Ar mai fi varianta sa creez un director script in care sa-i pun scripturile .
Code: Select all
#!/bin/sh
CAMNAME="oscame"
remove_tmp () {
rm -rf /tmp/*.info* /tmp/*.tmp*
}
case "$1" in
start)
echo "[SCRIPT] $1: $CAMNAME"
remove_tmp
/usr/bin/oscam -c /etc/tuxbox/config &
sleep 3
/usr/bin/oscam2 -c /etc/tuxbox/config2 &
;;
stop)
echo "[SCRIPT] $1: $CAMNAME"
killall -9 oscam 2>/dev/null
sleep 1
killall -9 oscam2 2>/dev/null
sleep 3
remove_tmp
;;
*)
$0 stop
exit 0
;;
esac
exit 0
CAMNAME="oscame"
Postby stargate » 09 Apr 2014 20:38
Instalare Oscam - Imagine OpenVIX - ZEUS
1. Bin-ul oscam se afla in locatia /usr/softcams si va avea atribut 755
2. Nu necesita script de pornire OSCam ... scriptul se afla integrat in imagine .
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 Manager - Start ( buton verde )
#!/bin/sh
case "$1" in
start)
ulimit -s 1024
exec start-stop-daemon -S -x /usr/softcams/CCcam.2.3.0
;;
stop)
exec start-stop-daemon -K -R 2 -x /usr/softcams/CCcam.2.3.0
;;
restart|reload)
$0 stop
sleep 1
$0 start
;;
version)
echo "2.3.0"
;;
info)
echo "CCcam 2.3.0"
;;
*)
echo "Usage: $0 start|stop|restart"
exit 1
;;
esac
exit 0
#!/bin/sh
case "$1" in
start)
ulimit -s 1024
/usr/softcams/oscam-emu --config-dir /etc/tuxbox/config --daemon --pidfile /tmp/oscam-emu.pid --restart 2 --utf8
;;
stop)
kill `cat /tmp/oscam-emu.pid` 2> /dev/null
;;
restart|reload)
$0 stop
sleep 1
$0 start
;;
version)
echo "svn"
;;
info)
echo "oscam-emu"
;;
*)
echo "Usage: $0 start|stop|restart"
exit 1
;;
esac
exit 0
Users browsing this forum: No registered users and 1 guest