Re: [App] libSoftPowerOff D/E/F/H
Posted: Fri Oct 09, 2015 8:33 am
Hello,
Why do you want to kill oscam in soft-off?
Why do you want to kill oscam in soft-off?
zoelechat wrote:Well, 3123 must be app too, not root. You might try TheTroll other solution above...
Actually the right "root netcat" port to use should be 3023, not 3123 which is "app telnet", if you want to give another try before switching to "alternative" methodmomchetoi wrote:OK, thank you!
Code: Select all
#!/bin/sh
echo "kill $(/mnt/bin/pgrep oscam-)" | /dtv/bin/nc localhost 3023
Code: Select all
#!/bin/sh
echo "/mnt/opt/privateer/usr/bin/oscam/oscam-* -c /mnt/opt/privateer/usr/bin/oscam -w 0 -b" | /dtv/bin/nc localhost 3023
Code: Select all
#!/bin/sh
#
# ? Copyright 1996-2015, zoelechat@SamyGO
#
#
. /dtv/SGO.env
OPTIONS="NOCMDONPVR CMD_ON:/mnt/opt/privateer/usr/bin/cmd_on.sh CMD_OFF:/mnt/opt/privateer/usr/bin/cmd_off.sh"
SODIR=$SYSROOT/opt/privateer/usr/libso # D/E only, on F/H environment LIBSO_DIR is used
stop_bootloop()
{
for USB in /dtv/usb/sd* ; do
echo "checking $USB"
[ -e $USB/STOP ] && echo "STOP found. Script exit..." && exit 1
done
}
case $1 in
start)
stop_bootloop
[ "$LIBSO_DIR" ] && SODIR=$LIBSO_DIR
samyGOso -A -B -r -l $SODIR/libSoftPowerOff.so $OPTIONS
;;
stop)
;;
status)
[ -f /dtv/SoftPowerOff.log ] && cat /dtv/SoftPowerOff.log || echo "Not started"
;;
*)
echo "Usage: $0 {start|stop|status}" 1>&2
exit 0
;;
esac
Code: Select all
#!/bin/sh
echo "/mnt/opt/privateer/usr/bin/oscam/oscam-* -c /mnt/opt/privateer/usr/bin/oscam -w 0 -b" | /dtv/bin/nc localhost 3023
Well, I don't see the point in copy/paste my post. Better paste what you're really usingmomchetoi wrote:It is a copy paste mistake here. It is changed.
No more idea, anyway you still have another provided solution above. Also verify all your paths.momchetoi wrote:As I told you the scripts are not executed automatically.
No, or something I ignore because of newest fw/rootmomchetoi wrote:Could it be a lib problem?!