Still no luck..
i also tried the following:
JavaScipr\Main.js:
added
Code: Select all
function deletefile(filepath){
var command = "filePlugin.Delete('" + filepath + "')";
var result = eval(command);
log("Delete '" + filepath + "' ? " + status(result));
return result;
}
in function rootSamyGO(path)
first few lines now:
Code: Select all
logPara("*********************** Root SamyGO files **************************************");
exists("/mtd_rwcommon/SamyGO/rcSGO");
deletefile("/mtd_rwcommon/SamyGO/rcSGO");
exists("/mtd_rwcommon/SamyGO/rcSGO");
exists("/mtd_rwcommon/emps/empBrowserCommonPlugin/plugins/libSamyGOrun.so");
deletefile("/mtd_rwcommon/emps/empBrowserCommonPlugin/plugins/libSamyGOrun.so");
exists("/mtd_rwcommon/emps/empBrowserCommonPlugin/plugins/libSamyGOrun.so");
//currentStep += unzip(usbMountPath +"/SamyGO-F/data/data.zip", "/tmp/");
currentStep += unzip(usbMountPath +"/"+widgetName+"/data/data.zip", "/mtd_rwcommon/");
This should delete old samygo files if they are already existing. and it does
also modified your rcSGO little bit:
Code: Select all
#!/bin/sh
try=0
maxTries=60
success=0
echo "OK" > /dtv/SamyGO_OK
while [ $try -le $maxTries ] || [ $success -eq 0 ]
do
echo "Looking for SamyGO-F on:"
for i in /dtv/usb/sd*;
do
echo "$i";
if [ -e "$i/SamyGO_data/run.sh" ]
then
echo "SamyGO found on $i"
echo "OK after $try tries" > "$i/SamyGO1.txt"
/bin/sh "$i/SamyGO_data/run.sh" "$i" &
success=1
break 2
fi
done
sleep 1
done
With this, we try to run SamyGo over and over for about 60 Seconds.. if usb is fast, it works fast, if usb is slow we are waiting up to 60 seconds.
But i still have no working Samy...
Edit:
There is a file copied to "/mtd_rwcommon/emps/empBrowserCommonPlugin/plugins/libSamyGOrun.so".
What is its purpose? DO i need to run any kind of Browser to initialize samyGo?
Or is "/mtd/rwcommon/SamyGO/rcSGO" executed magically at boot time?