Quantcast
Channel: MobileRead Forums - Kobo Reader
Viewing all articles
Browse latest Browse all 11208

Run automaticaly a script just after plugin installation

$
0
0
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.

Viewing all articles
Browse latest Browse all 11208

Trending Articles