2
0
mirror of https://github.com/koreader/koreader synced 2024-11-18 03:25:46 +00:00
koreader/launchpad/kpdf.sh

23 lines
637 B
Bash
Raw Normal View History

2011-12-08 23:11:23 +00:00
#!/bin/sh
export LC_ALL="en_US.UTF-8"
echo unlock > /proc/keypad
echo unlock > /proc/fiveway
2012-04-06 05:51:37 +00:00
cd /mnt/us/kindlepdfviewer/
2012-04-09 17:13:35 +00:00
grep /mnt/us/kindlepdfviewer/fonts/host /proc/mounts || mount -o bind /usr/java/lib/fonts /mnt/us/kindlepdfviewer/fonts/host
test "$2" == "framework_stop" && /etc/init.d/framework stop
2012-04-13 21:53:36 +00:00
./reader.lua "$1" 2> /mnt/us/kindlepdfviewer/crash.log || cat /mnt/us/kindlepdfviewer/crash.log
2012-04-06 05:51:37 +00:00
2012-04-09 17:13:35 +00:00
grep /mnt/us/kindlepdfviewer/fonts/host /proc/mounts && umount /mnt/us/kindlepdfviewer/fonts/host
# always try to continue cvm
killall -cont cvm || /etc/init.d/framework start
# cleanup hanging process
killall lipc-wait-event