View Single Post
Old 05-29-2013, 07:31 PM   #1
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
Run automaticaly a script just after plugin installation

Hi all,

I have a question I asked on another thread, but the object is on a different subject.
So, I try to have an answer with a new thread.

I make a plugin for wich the only thing I want is to run a script shell just after the installation.
This script self-destroy at the last instruction.

I looked at the nightmode plugin.
I see a file /root/autorun.sh
I made one for my plugin :
If my script is /mnt/onboard/.kobo/MyShell.sh,
/root/autorun.sh is :
Code:
/mnt/onboard/.kobo/MyShell.sh
rm /root/autorun.sh
sync
reboot
But, my script don't run after plugin installation.

Someone is able to help me please ?
Thanks.

EDIT : After a test with trace I can say that's /root/autorun.sh is not running after the plugin installation.

Last edited by Mingyar; 05-29-2013 at 08:00 PM.
Mingyar is offline   Reply With Quote