Quote:
Originally Posted by Markismus View Post
No reboot anymore, indeed!
I've changed koreader_kobo.sh to:
#!/bin/sh
export LC_ALL="en_US.UTF-8"
# we're always starting from our working directory
cd /mnt/onboard/.kobo/koreader/
# export trained OCR data directory
export TESSDATA_PREFIX="data"
# export dict directory
export STARDICT_DATA_DIR="data/dict"
# Decrease the reasons for crashes. Search forum for cgm999's explanation.
exec 3<&-
# stop Nickel
killall -STOP nickel
killall -STOP hindenburg
# finally call reader
./reader.lua /mnt/sd/.Library 1> koreader.log.`date +%s` 2>&1
# continue with nickel
killall -CONT hindenburg
killall -CONT nickel
And it works.
(If I get problems with the sleepfunction, I'll post it.)
Can you give me your “koreader_kobo.sh” ? THX /Quote
That is his “koreader_kobo.sh” Just make a copy of your existing one and make it match his ( except change the location he has as an argument being passed to, reader.lua and use the location of your ebook library. He has his library on his external SD card, behind a hidden folder named ".Library".) Having your library behind a hidden folder keeps the ebook files from being processed by Kobo. You should use a HexEditor to make sure there are no 0B (carriage returns) in the file and that the lines end in 0A (Linefeed). Or just use "Notepad++" set for Linux/Unix line endings. [notepad++ is great for reading any script files as it preserves the formatting, where as windows notepad doesn't.]
If you want to make a hidden folder using windows just name the folder with a dot/period both in front and behind the name (like: .Books.) the dot behind will disappear and you will have a Linux hidden folder with the leading dot (.books) that Kobo will not try to process.
Luck;
Ken
Oh, I notice he also mentions -STOP ing Hindenburg as well, I'll edit the above to include that.
Last edited by Ken Maltby; 12-03-2013 at 12:10 PM.
|