mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
46 lines
1022 B
Bash
46 lines
1022 B
Bash
#!/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 -STOP nickel
|
|
|
|
# store the content of the framebuffer
|
|
#dd if=/dev/fb0 of=.last_screen_content
|
|
|
|
# finally call reader
|
|
./reader.lua /mnt/onboard 2> crash.log
|
|
|
|
# continue with nickel
|
|
killall -CONT nickel
|
|
|
|
# return to home screen
|
|
case `/bin/kobo_config.sh * 2>/dev/null` in
|
|
dragon) #DEVICE=AURAHD
|
|
#no binary file available
|
|
;;
|
|
phoenix) #DEVICE=AURA
|
|
cat ./KoboAuraTapHomeIcon.bin > /dev/input/event1
|
|
cat ./KoboAuraTapHomeIcon.bin > /dev/input/event1
|
|
;;
|
|
kraken) #DEVICE=GLO
|
|
#no binary file available
|
|
;;
|
|
pixie) #DEVICE=MINI
|
|
cat ./KoboMiniTapHomeIcon.bin > /dev/input/event1
|
|
cat ./KoboMiniTapHomeIcon.bin > /dev/input/event1
|
|
;;
|
|
trilogy|*) #DEVICE=TOUCH
|
|
cat ./KoboTouchHomeButton.bin > /dev/input/event0
|
|
;;
|
|
esac
|
|
|