View Single Post
Old 06-21-2016, 11:47 AM   #29
pipcat
Connoisseur
pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.
 
Posts: 65
Karma: 200153
Join Date: Apr 2016
Device: Kobo Glo Hd
Cute tool NiLuJe!

I was looking a way to execute a custom .sh script from Nickel, and I see this can be done with kfmon and a png file. Nice ;-)

So I can download a zip file with patches from Kobo browser, and later press on a .png to process it in a bash script.

But going further, could it be possible to use kfmon to watch for a non-png file ? In this case I want to monitorize if a zip file exists, to process it. For example, something like this:
[watch]
filename = /mnt/onboard/download.php ; Zip file downloaded from pip.cat/khd/kobo
action = /mnt/onboard/.adds/autopatch/process.sh
skip_db_checks = 1

process.sh should unzip file, delete, generate a KoboRoot.tgz in .kobo and restart nickel to process KoboRoot. As if we copied it via usb and disconnect.

Are there other ways to execute a script by request, not at boot time ?
Maybe we can change an unused game to execute a .sh instead of his code ?
pipcat is offline   Reply With Quote