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

Kobo files monitor

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

1. Install KoboRoot.tgz
2. Create .kobo/fmon directory and copy "fmon" executable file there
3. copy on_start.sh to your .kobo directory
4. edit on_start.sh - add the custom commands.
5. copy png icons into the root of kobo's flash.

on_start.sh example:

Code:

#!/bin/sh
root=/mnt/onboard
$root/.kobo/fmon/fmon $root/launcher.png $root/.kobo/KoboLauncher/KoboLauncher.sh >> $root/.kobo/fmon/fmon.log.txt 2>&1 &
$root/.kobo/fmon/fmon $root/reboot.png $root/.kobo/KoboLauncher/utils/reboot.sh >> $root/.kobo/fmon/fmon.log.txt 2>&1 &

KoboLauncher.sh will be executed after launcher.png opening; reboot.sh will be executed after reboot.png opening from the kobo shell.

on_start.sh also allows to run another specific commands during kobo startup.

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!

Viewing all articles
Browse latest Browse all 11223

Latest Images

Trending Articles



Latest Images