View Single Post
Old 07-18-2013, 06:43 AM   #1
sergeyvl12
ebook fan
sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.
 
Posts: 735
Karma: 2528718
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
Kobo files monitor

Hi!

File monitor is a simple tool that allows to track opening of the specific files (e.g. png icons) and run specific commands in response. For today it seems that is is the only way to run shell scripts and programs on kobo.

Earlier it was the part of KoboLauncher, but I decided to improve it and make the separate installation.

You can download it (including the sources) here:

http://pbchess.vlasovsoft.net/files/kobo/fmon.zip

Installation:

Just install KoboRoot.tgz

Adding custom commands:

1. Copy launcher png icon to the kobo flash root directory (e.g. reboot.png)
2. Create the script for this icon in the .kobo/fmon

Example

reboot.sh: (script for reboot.png):

Code:
$root/.kobo/fmon/fmon $root/reboot.png $root/.kobo/KoboLauncher/utils/reboot.sh >> $root/.kobo/fmon/fmon.log.txt 2>&1 &
Example

launcher.sh (script for starting KoboLauncher):

Code:
$root/.kobo/fmon/fmon $root/launcher.png $root/.kobo/KoboLauncher/KoboLauncher.sh >> $root/.kobo/fmon/fmon.log.txt 2>&1 &
IMPORTANT:

1. on_start.sh is executed from on_animator.sh when onboard flash is already mounted. There is almost no risk to spoil your kobo boot process editing on_start.sh because on_animator.sh is a background process.

have fun!

Last edited by sergeyvl12; 07-26-2013 at 08:13 AM.
sergeyvl12 is offline   Reply With Quote