|
|
|
@ -15,6 +15,9 @@ fi
|
|
|
|
|
# we're always starting from our working directory
|
|
|
|
|
cd $KOREADER_DIR
|
|
|
|
|
|
|
|
|
|
# load our own shared libraries if possible
|
|
|
|
|
export LD_LIBRARY_PATH=${KOREADER_DIR}/libs:$LD_LIBRARY_PATH
|
|
|
|
|
|
|
|
|
|
# export trained OCR data directory
|
|
|
|
|
export TESSDATA_PREFIX="data"
|
|
|
|
|
|
|
|
|
@ -42,7 +45,7 @@ fi
|
|
|
|
|
|
|
|
|
|
# check whether PLATFORM has a value assigned by rcS
|
|
|
|
|
# PLATFORM is used in koreader for the path to the WiFi drivers
|
|
|
|
|
if [ -n "$PLATFORM" ]; then
|
|
|
|
|
if [ -n "$PLATFORM" ]; then
|
|
|
|
|
PLATFORM=freescale
|
|
|
|
|
if [ `dd if=/dev/mmcblk0 bs=512 skip=1024 count=1 | grep -c "HW CONFIG"` == 1 ]; then
|
|
|
|
|
CPU=`ntx_hwconfig -s -p /dev/mmcblk0 CPU`
|
|
|
|
|