2013-07-10 07:10:38 +00:00
|
|
|
#!/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"
|
|
|
|
|
2013-12-16 10:34:02 +00:00
|
|
|
# stop Nickel
|
|
|
|
killall -STOP nickel
|
|
|
|
|
2014-02-09 21:10:29 +00:00
|
|
|
# store the content of the framebuffer
|
2014-03-10 15:01:29 +00:00
|
|
|
#dd if=/dev/fb0 of=.last_screen_content
|
2014-02-09 21:10:29 +00:00
|
|
|
|
2013-07-10 07:10:38 +00:00
|
|
|
# finally call reader
|
2013-08-06 10:03:10 +00:00
|
|
|
./reader.lua /mnt/onboard 2> crash.log
|
2013-07-10 07:10:38 +00:00
|
|
|
|
|
|
|
# continue with nickel
|
2013-12-16 10:34:02 +00:00
|
|
|
killall -CONT nickel
|
2014-04-29 10:12:56 +00:00
|
|
|
|
|
|
|
# return to home screen
|
|
|
|
case `/bin/kobo_config.sh * 2>/dev/null` in
|
2014-05-08 13:05:19 +00:00
|
|
|
dragon) #DEVICE=AURAHD
|
2014-04-29 10:12:56 +00:00
|
|
|
#no binary file available
|
|
|
|
;;
|
|
|
|
phoenix) #DEVICE=AURA
|
|
|
|
cat ./KoboAuraTapHomeIcon.bin > /dev/input/event1
|
|
|
|
cat ./KoboAuraTapHomeIcon.bin > /dev/input/event1
|
|
|
|
;;
|
2014-05-08 13:05:19 +00:00
|
|
|
kraken) #DEVICE=GLO
|
2014-04-29 10:12:56 +00:00
|
|
|
#no binary file available
|
|
|
|
;;
|
2014-05-08 13:05:19 +00:00
|
|
|
pixie) #DEVICE=MINI
|
2014-04-29 10:12:56 +00:00
|
|
|
cat ./KoboMiniTapHomeIcon.bin > /dev/input/event1
|
|
|
|
cat ./KoboMiniTapHomeIcon.bin > /dev/input/event1
|
|
|
|
;;
|
|
|
|
trilogy|*) #DEVICE=TOUCH
|
|
|
|
cat ./KoboTouchHomeButton.bin > /dev/input/event0
|
|
|
|
;;
|
2014-05-08 13:05:19 +00:00
|
|
|
esac
|
|
|
|
|