Just thought of writing some instructions to use the
uptime.sh script (to measure the overall uptime of a Kobo eReader) with KoReader.
Well, its really very simple.
- Install the uptime.sh if you don't already have it ;o)
- Extract the poweroff.sh from the poweroff.sh.zip to the Koreader folder (.adds\koreader)
- Edit the koreader\frontend\device\kobo\device.lua (use a text editor that respects line breaks like Notepad++) and change the os.execute("poweroff") to os.execute("./poweroff.sh")
Thats it!
Now, whenever the KoReader closes (by the menu entry "Power off" or by a long press of the power button) the uptime.txt will be updated.
If you like to have the KSM's poweroff_info.html displayed instead of the KoReaders's screen saver, just un-comment these lines in the poweroff.sh (remove the # from the start of each line)
Code:
#pofile=${pofile:-"$ksmuser/txt/poweroff_info.html"}
#$ksmroot/kbmessage.sh "-f $pofile" &
#usleep 400000