mirror of
https://github.com/koreader/koreader
synced 2024-11-10 01:10:34 +00:00
aa55dca677
lsof is used to find path of current opened pdf
9 lines
242 B
Bash
Executable File
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
|