View Single Post
Old 07-12-2013, 03:31 PM   #221
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
Quote:
Originally Posted by Markismus View Post
It is mounted in /mnt/sd isn't it? Couldn't you unmount it before nickel and remount before reader.lua?
I could try changing koreader_kobo.sh to this:

#!/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"

# stop nickel
killall nickel

# mount external SD and finally call reader
mount -t vfat -o iocharset=utf8 /dev/mmcblk1p1 /mnt/sd
./reader.lua "$1" 2> crash.log

# Unmount external SD and continue with nickel
umount /mnt/sd
reboot
---------------------------------------------

Not sure I want or need the "/dev/mmcblk1p1"

I'll give this a try after awhile.

Luck;
Ken

Last edited by Ken Maltby; 07-12-2013 at 03:36 PM.
Ken Maltby is offline   Reply With Quote