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!