View Single Post
Old 05-30-2013, 03:12 PM   #4
Mingyar
Connoisseur
Mingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to behold
 
Posts: 93
Karma: 11824
Join Date: Feb 2013
Device: Kobo Mini/Aura H2O/Aura One LE / Tea Inkpad 3
So, I made new investigations :
the autorun.sh :
Code:
#!/bin/sh

echo "autorun" >/mnt/onboard/.kobo/autorun.log

echo "autorun" >/root/autorun.log

/mnt/onboard/.kobo/MyScript.sh

rm /etc/udev/rules.d/98-autorunHook.rules
rm /root/autorun.sh

sync
reboot
in MyScript.sh :
Code:
#!/bin/sh

...

cp /root/autorun.log /mnt/onboard/.kobo/autorun_from_root.log 1>/mnt/onboard/.kobo/a.log 2>&1
After copy of the KoboRoot.tgz in .kobo folder and unplug the Kobo, update phase is succedded by restart.

I plug the Kobo to the PC, the autorun.log doesn't exist in the .kobo folder.
I unplug then run MyScript.sh (user command in KoboTweaks plugin).
I plug again the Kobo.
I find the autorun_from_root.log in .kobo folder.

So, it seems that autorun.sh has been executed but was not able to access /mnt/onboard/.kobo folder.

Someone can confirm that ?
If I'm right, is there a way to execute automatically a script in /mnt/onboard/.kobo just after a plugin is installed ?
If not, I can put that script in the /root folder, but, this script has to work in the /mnt/onboard/.kobo/images ...

I hope my English is enough good to be explain my problem.

Last edited by Mingyar; 05-30-2013 at 03:34 PM.
Mingyar is offline   Reply With Quote