Page 1 of 1

need your help on SamyGo.sh on advanced patched FW

Posted: Sat Feb 02, 2013 7:34 pm
by borath
Hello!

I have problems setting up the SamyGO.sh autostart file on my LE40B750:
Telnet starts fine and so do the SamyGo extensions from arris. But the AudioSwitcher (located at the 4th line from bottom) does somehow not start from this script.

This is my SamyGO.sh:

Code: Select all

#!/bin/sh

# Enable Telnetd
if [ 'cat /proc/mounts | grep -c "/dev/pts"' -lt "1" ] ; then
        echo "telnetd Enabled"

        mount -t devpts devpts /dev/pts
        telnetd
else
        echo "/dev/pts is mounted"
fi



# Open back-door for fixing boot-loop situations
sleep 20       # Allow USB stick to settle
USB="/dtv/usb/sda1"    # USB mount-point

if [ -f $USB/usb.sh ];then
  echo "USB-File detected"
  $USB/usb.sh
  exit
else
  echo "Running Normal SamyGO Startup"
fi
/mtd_tlib/GGame/SamyGO/rcSGO
/mtd_tlib/GGame/SamyGO_AudioStreamSwitcher/loader.so
/mtd_tlib/GGame/SamyGO_AspectRatio/load.so
/mtd_tlib/GGame/Outliner/loader.so
exit

Paths are good, and i also tried the switcher.so instead the loader.so:

Code: Select all

/mtd_tlib/GGame/SamyGO_AudioStreamSwitcher/switcher.so
But this also without success.
By starting the application from the Content-Menu it works fine as it should.

Is there maybe a sleep or some other linux-specific thingies (running parallel programs) neccessary?

I appreciate any help you can give me in this matter!

best regards,
B

Re: need your help on SamyGo.sh on advanced patched FW

Posted: Sat Feb 02, 2013 7:36 pm
by juusso
You can`t start .so files directly. You can attach it to exeDSP using injectso (IIRC script exists in Extensions, just needet to be enabled and tuned up).
Also you can search for injectso in forum.

Edit:
90_90_injectso.init , edit this part of script as follows:

Code: Select all

### begin configure me
# see description at: http://sourceforge.net/apps/phpbb/samygo/viewtopic.php?f=6&t=862&start=0
# libraries: absolute path of libraries to be loaded
#	     like "/full/path/to/load_custom_module1.so /full/path/to/load_custom_module2.so"
#            there can be several, separated spaces!!
#            this script requires paths-names WITHOUT spaces
libraries="/mtd_tlib/GGame/SamyGO_AudioStreamSwitcher/loader.so /mtd_tlib/GGame/SamyGO_AspectRatio/load.so /mtd_tlib/GGame/Outliner/loader.so" # add your libraries here

### end configure me
 

Re: need your help on SamyGo.sh on advanced patched FW

Posted: Sat Feb 02, 2013 7:45 pm
by borath
juuso, thank you so much for your answer.

You write .so files cannot be executed this way - but the SamyGO all extensions are executed for sure. (Samba shares appear)
Do you know why this works then?

But due your help i will invsestigate this injection file.

best regards,
B

Re: need your help on SamyGo.sh on advanced patched FW

Posted: Sat Feb 02, 2013 8:12 pm
by juusso
Extensions in generally are bash scripts. So this way rcSGO can be started from SamyGO.sh. But you need to execute content library apps with loaders.