View Single Post
Old 10-08-2019, 12:07 PM   #58
anarcat
Connoisseur
anarcat doesn't litteranarcat doesn't litter
 
anarcat's Avatar
 
Posts: 83
Karma: 192
Join Date: Jul 2013
Location: Planet Ocean
Device: Kobo Glo HD, Onyx Boox Note Pro 2, Samsung Galaxy Tab S5e, Pixel 4a
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.
anarcat is offline   Reply With Quote