Page 1 of 1

Re: Persistent SamyGo apps - a guide?

Posted: Fri Sep 09, 2011 8:17 am
by juusso
People spend a lot of time by developing apps and no time left for documenting on wiki. So if anyone could do that, your help is very appreciated!

Re: Guide - geoPATCHER

Posted: Fri Sep 09, 2011 12:45 pm
by moras86
There is good Wiki tutorial for autoload exeDSP plugins created almost year ago by geo650.

http://wiki.samygo.tv/index.php5/Autolo ... %28B65x%29

PS: There was only problem with find it on Wiki because there was no link for it from B-series subpage. I fix it now :)

Re: Persistent SamyGo apps - a guide?

Posted: Fri Sep 09, 2011 1:41 pm
by juusso
Moras, method he described is not used and dangerous. We need refresh info about autostart methods.

Re: Persistent SamyGo apps - a guide?

Posted: Mon Sep 19, 2011 12:55 pm
by nbd
Hello, I was thinking a failsafe method for those autostart scripts. Preventing the case something goes wrong and TV goes to infinite boot / restart loop.

How about when the samygo.sh starts, it disables itself from being run, then launches a fork which sleeps for about a minute or so, and after the minute, forked child enables again the samygo.sh

Maybe something like this (pseudo code, don't remember sh syntax by heart)

#!/bin/sh
# samygo.sh, run on each start from patched firmware

if exists /mtd/wiselink/samygo/disable_autostart
then exit

touch /mtd/wiselink/samygo/disable_autostart

fork

if(child)
{
sleep 60
rm /mtd/wiselink/samygo/disable_autostart
exit
}

# parent
do the injectso or whatever

Edit: or instead of fork, just do the sleep and rm at the end of samygo.sh.