2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00
koreader/launchpad/kpdf.sh
Dobrica Pavlinusic aa55dca677 open reader using shift+P+P from Kindle's pdf viewer using launchpad
lsof is used to find path of current opened pdf
2011-11-26 16:24:00 +01:00

9 lines
242 B
Bash
Executable File

echo unlock > /proc/keypad
echo unlock > /proc/fiveway
cd /mnt/us/test/
cat /dev/fb0 > screen.fb0 &
pdf=`lsof | grep /mnt/us/documents | cut -c81- | sort -u`
./reader.lua "$pdf"
cat screen.fb0 > /dev/fb0
echo 1 > /proc/eink_fb/update_display