[App] libSoftPowerOff D/E/F/H
Re: [App] libSoftPowerOff D/E/F/H
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).
I do NOT receive any PM. Please use forum.
- momchetoi
- SamyGO Project Donor
- Posts: 92
- Joined: Thu Apr 23, 2015 7:36 pm
- Location: in front of the TV
Re: [App] libSoftPowerOff D/E/F/H
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:
And I can see the 99_95_SoftPowerOff.init file is in the specified directory?!?
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
UE40H6500 - T-MST14DEUC fw. 2606.2 ==>to 2130/Skype root/ with oscam
UE32EH5450 - T-MST10PDEUC fw. 1042.0 with oscam
UE32J5500 - T-HKMFDEUC fw. 1570 ==>1412 with oscam
TP-Link C6U with OpenWrt 21.02 & TL-WR842N v.3.1 OpenWrt 15.05.1 with oscam and smartmouse
UE32EH5450 - T-MST10PDEUC fw. 1042.0 with oscam
UE32J5500 - T-HKMFDEUC fw. 1570 ==>1412 with oscam
TP-Link C6U with OpenWrt 21.02 & TL-WR842N v.3.1 OpenWrt 15.05.1 with oscam and smartmouse
Re: [App] libSoftPowerOff D/E/F/H
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?
I do NOT receive any PM. Please use forum.
- momchetoi
- SamyGO Project Donor
- Posts: 92
- Joined: Thu Apr 23, 2015 7:36 pm
- Location: in front of the TV
Re: [App] libSoftPowerOff D/E/F/H
Now I`m editing the script with Notepad ++.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?
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
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.
UE40H6500 - T-MST14DEUC fw. 2606.2 ==>to 2130/Skype root/ with oscam
UE32EH5450 - T-MST10PDEUC fw. 1042.0 with oscam
UE32J5500 - T-HKMFDEUC fw. 1570 ==>1412 with oscam
TP-Link C6U with OpenWrt 21.02 & TL-WR842N v.3.1 OpenWrt 15.05.1 with oscam and smartmouse
UE32EH5450 - T-MST10PDEUC fw. 1042.0 with oscam
UE32J5500 - T-HKMFDEUC fw. 1570 ==>1412 with oscam
TP-Link C6U with OpenWrt 21.02 & TL-WR842N v.3.1 OpenWrt 15.05.1 with oscam and smartmouse
Re: [App] libSoftPowerOff D/E/F/H
Funny indeed, the mystery deepens 
Edit script and send injection output to file, like this:
then after it should have started:
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...

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
Code: Select all
cat /dtv/softp.log
Also add some linefeed after last line of script (=ENTER after 'esac'), just in case...
I do NOT receive any PM. Please use forum.
- momchetoi
- SamyGO Project Donor
- Posts: 92
- Joined: Thu Apr 23, 2015 7:36 pm
- Location: in front of the TV
Re: [App] libSoftPowerOff D/E/F/H
All done.zoelechat wrote:Funny indeed, the mystery deepens
Edit script and send injection output to file, like this:then after it should have started:Code: Select all
samyGOso -A -B -r -l $SODIR/libSoftPowerOff.so $OPTIONS > /dtv/softp.log
So we'll be able to see what injection said.Code: Select all
cat /dtv/softp.log
Also add some linefeed after last line of script (=ENTER after 'esac'), just in case...
Here the result:
Code: Select all
/mnt # cat /dtv/softp.log
cat: can't open '/dtv/softp.log': No such file or directory
UE40H6500 - T-MST14DEUC fw. 2606.2 ==>to 2130/Skype root/ with oscam
UE32EH5450 - T-MST10PDEUC fw. 1042.0 with oscam
UE32J5500 - T-HKMFDEUC fw. 1570 ==>1412 with oscam
TP-Link C6U with OpenWrt 21.02 & TL-WR842N v.3.1 OpenWrt 15.05.1 with oscam and smartmouse
UE32EH5450 - T-MST10PDEUC fw. 1042.0 with oscam
UE32J5500 - T-HKMFDEUC fw. 1570 ==>1412 with oscam
TP-Link C6U with OpenWrt 21.02 & TL-WR842N v.3.1 OpenWrt 15.05.1 with oscam and smartmouse
- momchetoi
- SamyGO Project Donor
- Posts: 92
- Joined: Thu Apr 23, 2015 7:36 pm
- Location: in front of the TV
Re: [App] libSoftPowerOff D/E/F/H
I think injection fails.momchetoi wrote:All done.zoelechat wrote:Funny indeed, the mystery deepens
Edit script and send injection output to file, like this:then after it should have started:Code: Select all
samyGOso -A -B -r -l $SODIR/libSoftPowerOff.so $OPTIONS > /dtv/softp.log
So we'll be able to see what injection said.Code: Select all
cat /dtv/softp.log
Also add some linefeed after last line of script (=ENTER after 'esac'), just in case...
Here the result:Code: Select all
/mnt # cat /dtv/softp.log cat: can't open '/dtv/softp.log': No such file or directory

UE40H6500 - T-MST14DEUC fw. 2606.2 ==>to 2130/Skype root/ with oscam
UE32EH5450 - T-MST10PDEUC fw. 1042.0 with oscam
UE32J5500 - T-HKMFDEUC fw. 1570 ==>1412 with oscam
TP-Link C6U with OpenWrt 21.02 & TL-WR842N v.3.1 OpenWrt 15.05.1 with oscam and smartmouse
UE32EH5450 - T-MST10PDEUC fw. 1042.0 with oscam
UE32J5500 - T-HKMFDEUC fw. 1570 ==>1412 with oscam
TP-Link C6U with OpenWrt 21.02 & TL-WR842N v.3.1 OpenWrt 15.05.1 with oscam and smartmouse
- momchetoi
- SamyGO Project Donor
- Posts: 92
- Joined: Thu Apr 23, 2015 7:36 pm
- Location: in front of the TV
Re: [App] libSoftPowerOff D/E/F/H
All done.zoelechat wrote:Funny indeed, the mystery deepens
Edit script and send injection output to file, like this:then after it should have started:Code: Select all
samyGOso -A -B -r -l $SODIR/libSoftPowerOff.so $OPTIONS > /dtv/softp.log
So we'll be able to see what injection said.Code: Select all
cat /dtv/softp.log
Also add some linefeed after last line of script (=ENTER after 'esac'), just in case...
Here the result:
Code: Select all
/mnt # cat /dtv/softp.log
cat: can't open '/dtv/softp.log': No such file or directory

P.S. Manual start
Code: Select all
/mnt/etc/init.d/99_99_SoftPowerOff.init start
UE40H6500 - T-MST14DEUC fw. 2606.2 ==>to 2130/Skype root/ with oscam
UE32EH5450 - T-MST10PDEUC fw. 1042.0 with oscam
UE32J5500 - T-HKMFDEUC fw. 1570 ==>1412 with oscam
TP-Link C6U with OpenWrt 21.02 & TL-WR842N v.3.1 OpenWrt 15.05.1 with oscam and smartmouse
UE32EH5450 - T-MST10PDEUC fw. 1042.0 with oscam
UE32J5500 - T-HKMFDEUC fw. 1570 ==>1412 with oscam
TP-Link C6U with OpenWrt 21.02 & TL-WR842N v.3.1 OpenWrt 15.05.1 with oscam and smartmouse
Re: [App] libSoftPowerOff D/E/F/H
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? 

I do NOT receive any PM. Please use forum.
- momchetoi
- SamyGO Project Donor
- Posts: 92
- Joined: Thu Apr 23, 2015 7:36 pm
- Location: in front of the TV
Re: [App] libSoftPowerOff D/E/F/H
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 ?
Osam -b ?
Last edited by momchetoi on Tue Oct 06, 2015 2:54 pm, edited 1 time in total.
UE40H6500 - T-MST14DEUC fw. 2606.2 ==>to 2130/Skype root/ with oscam
UE32EH5450 - T-MST10PDEUC fw. 1042.0 with oscam
UE32J5500 - T-HKMFDEUC fw. 1570 ==>1412 with oscam
TP-Link C6U with OpenWrt 21.02 & TL-WR842N v.3.1 OpenWrt 15.05.1 with oscam and smartmouse
UE32EH5450 - T-MST10PDEUC fw. 1042.0 with oscam
UE32J5500 - T-HKMFDEUC fw. 1570 ==>1412 with oscam
TP-Link C6U with OpenWrt 21.02 & TL-WR842N v.3.1 OpenWrt 15.05.1 with oscam and smartmouse