Thank you, I didn't know this extension. I downloaded and installed the ipk file from this very site:
Oscam emu ALL Images mips--arm .ipk .deb
Maybe it was not the best choice; anyway I managed to let it work (at last!) with the help of another user of this forum who gave me a suitable version of the init.d script
Basically, what is inside that ipk does not work for OpenEight - only the Oscam binary does. The start/stop script is wrong. At first it does not work because of binary folder path mismatch (ipk installs the binary into /usr/bin/cam while the script looks for it in /usr/bin). If one fixes this, the system just hangs.
Here is the init.d script inside the IPK:
#!/bin/sh
#### "*******************************************"
#### "* ..:: A U T H O R ::.. *"
#### "* << Audi06_19 >> *"
#### "* ..:: https://dreamosat-forum.com ::.. *"
#### "*******************************************"
CAMNAME="OSCam_11.684-r798"
BINARY="OSCam_11.684-r798"
case "$1" in
start)
ulimit -s 1024
exec start-stop-daemon -S -x /usr/bin/$BINARY
;;
stop)
exec start-stop-daemon -K -R 2 -x /usr/bin/$BINARY
;;
restart|reload)
$0 stop
sleep 1
$0 start
;;
version)
echo $CAMNAME
;;
info)
echo $CAMNAME
;;
*)
echo "Usage: $0 start|stop|restart"
exit 1
;;
esac
exit 0
Display More
Here is what I am using now:
#!/bin/sh
### BEGIN INIT INFO
# Provides: softcam
# Required-Start: $local_fs
# Required-Stop:
# Should-Start: $time $remote_fs cardserver
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: oscam
# Description: oscam SoftCAM, card reader and server.
### END INIT INFO
readlink -f $0 >/dev/null 2>&1
if [ $? -eq 0 ]; then
CAM=$(basename $(readlink -f $0) | sed s#^softcam\.##)
else
CAM=$(basename $0 | sed s#^softcam\.##)
fi
[ -n "$CAM" ] || exit 1
[ -x /usr/bin/$CAM ] || exit 1
PIDFILE=/var/tmp/${CAM}.pid
DESC="Softcam service $CAM"
DAEMON=/usr/bin/$CAM
case "$1" in
start)
if [ -e $PIDFILE ]; then
PIDDIR=/proc/$(cat $PIDFILE)
if [ -d ${PIDDIR} ] && [[ $(readlink -f ${PIDDIR}/exe) == $DAEMON ]]; then
echo "$DESC already started; not starting."
exit 1
else
rm -f $PIDFILE
fi
fi
echo -n "Starting $DESC: "
ulimit -s 1024
$DAEMON --config-dir /etc/tuxbox/config --daemon --pidfile $PIDFILE --restart 2 --utf8 2| grep -v "UTF-8 mode"
sleep 0.5
RETVAL=1
[ -e $PIDFILE ] && RETVAL=0
if [ "$RETVAL" -eq "0" ]; then
echo "OK"
else
echo "FAILED"
fi
exit $RETVAL
;;
stop)
echo -n "Stopping $DESC: "
kill `cat $PIDFILE 2> /dev/null` 2> /dev/null
RETVAL=$?
if [ "$RETVAL" -eq "0" ]; then
echo "OK"
else
echo "FAILED"
fi
sleep 1
killall $CAM 2> /dev/null
exit $RETVAL
;;
restart|reload)
$0 stop
sleep 1
$0 start
exit $?
;;
status)
echo -n "$DESC: "
if [ -e $PIDFILE ]; then
PIDDIR=/proc/$(cat $PIDFILE)
if [ -d ${PIDDIR} ] && [[ $(readlink -f ${PIDDIR}/exe) == $DAEMON ]]; then
echo "Running."
exit 0
fi
fi
echo "Stopped."
exit 1
;;
version)
$CAM -V | grep 'Version\|IPv6' | sed 's/Version:[ ]*//' | sed 's/IPv6.*yes/with IPv6/g' | sed 's/IPv6.*no/IPv4-only/g' | sed ':a;N;$!ba;s/\n/ /g'
;;
info)
$CAM -V | grep 'Version\|IPv6' | sed 's/Version:[ ]*//' | sed 's/IPv6.*yes/with IPv6/g' | sed 's/IPv6.*no/IPv4-only/g' | sed ':a;N;$!ba;s/\n/ /g'
;;
*)
echo "Usage: $0 start|stop|restart|status"
exit 1
;;
esac
exit 0
Display More