Page 2 of 2

Re: Having Trouble with ln40b650

Posted: Mon Jun 10, 2013 12:44 pm
by bdan629
juuso wrote:Script is on wiki is ok. But your problem could be text editor you`re using to edit your scripts.

btw, you can debug script from console, just call it like

Code: Select all

sh -x /mtd_rwarea/SamyGO.sh
and give here the output...
alright I am just trying to run a simple script on startup. The script looks like this:

Code: Select all

#!/bin/sh
#SamyGo Extensions
/mtd_tlib/GGame/SamyGO/rcSGO &
exit
Basically I just want it to run SamyGO All extensions on startup. I have copied the SamyGO extensions folder to mtd_tlib\GGame\ as the path designates

debugging the script as you suggested with -sh -x /mtd_rwarea/SamyGO.sh yields this output. I know why it fails at the telnet bind because I already have telnet enabled. But the problem is when I restart the TV, telnet is not automatically enabled....I still have to run telnetenabler out of the content library......

Code: Select all

# sh -x /mtd_rwarea/SamyGO.sh
+ /mtd_tlib/GGame/SamyGO/rcSGO
+
: not found/SamyGO.sh: /mtd_rwarea/SamyGO.sh: 3:
+ exit
# mount: Mounting devpts on /dev/pts failed: Device or resource busy
telnetd: bind: Address already in use

Re: Having Trouble with ln40b650

Posted: Mon Jun 10, 2013 1:04 pm
by juusso
and what says...

Code: Select all

sh -x /mtd_tlib/GGame/SamyGO/rcSGO
and your SamyGO.sh should look like:

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

sleep 10
#SamyGo Extensions
if [ -f /mtd_tlib/GGame/SamyGO/rcSGO ]; then
sh +x /mtd_tlib/GGame/SamyGO/rcSGO /mtd_tlib/GGame/SamyGO > /dtv/rcSGO_out 2>&1 &
else
echo "no Extensions found"
fi
:)

Re: Having Trouble with ln40b650

Posted: Tue Jan 14, 2014 3:43 pm
by Pitou
Hello,

One of my friend owns the same TV as you.

We tried the method mentioned and we're stuck at the account creation. We changed the country for S. America, Chili... When TV reboots, we have to accept 2-3 terms/agreements and then we get an error message, "Database access error" or something similar, then we get "Connecting" or "Starting" but then nothing happens. When we change back to country to USA, it asks again for agreements and re-download all widgets and all is fine. We tried twice and no luck.

Any idea?

Thank you.

Pitou!