Page 9 of 26

Re: [App] libSoftPowerOff D/E/F/H

Posted: Tue Oct 06, 2015 11:02 am
by zoelechat
Well, I don't see any obvious reason why startup script wouldn't start. You should maybe try to add some sleep in script after injection, or simply rename script to launch it as latest in sequence (99_95->99_99 for example).

Re: [App] libSoftPowerOff D/E/F/H

Posted: Tue Oct 06, 2015 11:43 am
by momchetoi
After a couple of restarts of the TV and after adding sleep 5 in the auto start script by trying to start the script manually, I getting the following error in the command prompt:

Code: Select all

/mnt # /mnt/etc/init.d/99_95_SoftPowerOff.init start
/mnt/bin/ash: /mnt/etc/init.d/99_95_SoftPowerOff.init: not found
And I can see the 99_95_SoftPowerOff.init file is in the specified directory?!?

Re: [App] libSoftPowerOff D/E/F/H

Posted: Tue Oct 06, 2015 12:02 pm
by zoelechat
Is the script file non-empty (size<>0, maybe transfer failed)? Did you use Notepad++ to edit script, and verified linefeeds were set to UNIX format?

Re: [App] libSoftPowerOff D/E/F/H

Posted: Tue Oct 06, 2015 12:33 pm
by momchetoi
zoelechat wrote:Is the script file non-empty (size<>0, maybe transfer failed)? Did you use Notepad++ to edit script, and verified linefeeds were set to UNIX format?
Now I`m editing the script with Notepad ++.
I`ve modified it like this:

Code: Select all

#!/bin/sh
#
# ? Copyright 1996-2015, zoelechat@SamyGO
#
#
. /dtv/SGO.env

OPTIONS=""

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
	sleep 10
	[ "$LIBSO_DIR" ] && SODIR=$LIBSO_DIR
	samyGOso -A -B -r -l $SODIR/libSoftPowerOff.so $OPTIONS
	sleep 5
	;;
	stop)
	;;
	status)
	[ -f /dtv/SoftPowerOff.log ] && cat /dtv/SoftPowerOff.log || echo "Not started"
	;;
	*)
	echo "Usage: $0 {start|stop|status}" 1>&2
	exit 0
	;;
esac
Restarted the TV with deep standby. The script didn`t start again.
Then I`ve changed the name of the script to 99_99_SoftPowerOff.init, thean restarted the TV again. The script didn`t start. :(

Then I`ve tried again a manual start and it started and worked normally until the next deep stanby :(

Code: Select all

/mnt # /mnt/etc/init.d/99_99_SoftPowerOff.init start
checking /dtv/usb/sda1
checking /dtv/usb/sdb
samyGOso v1.2.5 (c) bugficks 2013-2014, sectroyer 2014-2015
Injecting '/mnt/opt/privateer/usr/libso/libSoftPowerOff.so' resident: '1'
Succeeded.
Obviously the system refuses to start automatically the script, but why???

Re: [App] libSoftPowerOff D/E/F/H

Posted: Tue Oct 06, 2015 12:52 pm
by zoelechat
Funny indeed, the mystery deepens :)
Edit script and send injection output to file, like this:

Code: Select all

samyGOso -A -B -r -l $SODIR/libSoftPowerOff.so $OPTIONS > /dtv/softp.log
then after it should have started:

Code: Select all

cat /dtv/softp.log
So we'll be able to see what injection said.

Also add some linefeed after last line of script (=ENTER after 'esac'), just in case...

Re: [App] libSoftPowerOff D/E/F/H

Posted: Tue Oct 06, 2015 2:11 pm
by momchetoi
zoelechat wrote:Funny indeed, the mystery deepens :)
Edit script and send injection output to file, like this:

Code: Select all

samyGOso -A -B -r -l $SODIR/libSoftPowerOff.so $OPTIONS > /dtv/softp.log
then after it should have started:

Code: Select all

cat /dtv/softp.log
So we'll be able to see what injection said.

Also add some linefeed after last line of script (=ENTER after 'esac'), just in case...
All done.
Here the result:

Code: Select all

/mnt # cat /dtv/softp.log
cat: can't open '/dtv/softp.log': No such file or directory

Re: [App] libSoftPowerOff D/E/F/H

Posted: Tue Oct 06, 2015 2:14 pm
by momchetoi
momchetoi wrote:
zoelechat wrote:Funny indeed, the mystery deepens :)
Edit script and send injection output to file, like this:

Code: Select all

samyGOso -A -B -r -l $SODIR/libSoftPowerOff.so $OPTIONS > /dtv/softp.log
then after it should have started:

Code: Select all

cat /dtv/softp.log
So we'll be able to see what injection said.

Also add some linefeed after last line of script (=ENTER after 'esac'), just in case...
All done.
Here the result:

Code: Select all

/mnt # cat /dtv/softp.log
cat: can't open '/dtv/softp.log': No such file or directory
I think injection fails. :(

Re: [App] libSoftPowerOff D/E/F/H

Posted: Tue Oct 06, 2015 2:15 pm
by momchetoi
zoelechat wrote:Funny indeed, the mystery deepens :)
Edit script and send injection output to file, like this:

Code: Select all

samyGOso -A -B -r -l $SODIR/libSoftPowerOff.so $OPTIONS > /dtv/softp.log
then after it should have started:

Code: Select all

cat /dtv/softp.log
So we'll be able to see what injection said.

Also add some linefeed after last line of script (=ENTER after 'esac'), just in case...
All done.
Here the result:

Code: Select all

/mnt # cat /dtv/softp.log
cat: can't open '/dtv/softp.log': No such file or directory
I think injection fails. :(
P.S. Manual start

Code: Select all

 /mnt/etc/init.d/99_99_SoftPowerOff.init start
works normally

Re: [App] libSoftPowerOff D/E/F/H

Posted: Tue Oct 06, 2015 2:22 pm
by zoelechat
Just thinking... Don't you have an endless script in your startup sequence? For example an oscam daemon not launched in the background as it should, and preventing then anything further after it? :)

Re: [App] libSoftPowerOff D/E/F/H

Posted: Tue Oct 06, 2015 2:29 pm
by momchetoi
Yes, I have an oscam started,but what do you mean not started in the background?! How to start it in the background?
Osam -b ?