mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
20 lines
469 B
Bash
Executable File
20 lines
469 B
Bash
Executable File
#!/bin/sh
|
|
SLIDER_EVENT_PIPE="/tmp/event_slider"
|
|
export LC_ALL="en_US.UTF-8"
|
|
|
|
echo unlock > /proc/keypad
|
|
echo unlock > /proc/fiveway
|
|
cd /mnt/us/kindlepdfviewer/
|
|
|
|
# create the named pipe for power slider event
|
|
if [ ! -p $SLIDER_EVENT_PIPE ]; then
|
|
mkfifo $SLIDER_EVENT_PIPE
|
|
fi
|
|
killall slider_watcher
|
|
./slider_watcher $SLIDER_EVENT_PIPE &
|
|
|
|
./reader.lua $1 2> /mnt/us/kindlepdfviewer/crash.log
|
|
killall -cont cvm
|
|
killall slider_watcher
|
|
echo 1 > /proc/eink_fb/update_display
|