note that the plato author showed me a few tricks that might be useful to others here, and that I want to include in wallabako:
Apparently, there's a file in /tmp/nickel-hardware-status, created in /etc/init.d/rcS that Nickel reads from. A few scripts in the Kobo distro also write to it:
/etc/udhcpc.d/default.script
/usr/local/Kobo/ntpd.sh
/usr/local/Kobo/udev/ac
/usr/local/Kobo/udev/plug
/usr/local/Kobo/udev/sd
The udev scripts are triggered by rules defined in /lib/udev/rules.d/kobo.rules. Plato reads from this FIFO to get notified when the device is plugged to or unplugged from a power source.
|