mirror of https://github.com/koreader/koreader
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
502 B
Bash
17 lines
502 B
Bash
#!/bin/sh
|
|
export LC_ALL="en_US.UTF-8"
|
|
|
|
echo unlock > /proc/keypad
|
|
echo unlock > /proc/fiveway
|
|
|
|
cd /mnt/us/kindlepdfviewer/
|
|
|
|
grep /mnt/us/kindlepdfviewer/fonts/host /proc/mounts || mount -o bind /usr/java/lib/fonts /mnt/us/kindlepdfviewer/fonts/host
|
|
|
|
./reader.lua "$1" 2> /mnt/us/kindlepdfviewer/crash.log || cat /mnt/us/kindlepdfviewer/crash.log
|
|
|
|
grep /mnt/us/kindlepdfviewer/fonts/host /proc/mounts && umount /mnt/us/kindlepdfviewer/fonts/host
|
|
|
|
killall -cont cvm
|
|
echo 1 > /proc/eink_fb/update_display
|