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.
22 lines
465 B
Bash
22 lines
465 B
Bash
4 years ago
|
#!/bin/bash
|
||
|
export LC_ALL="en_US.UTF-8"
|
||
|
|
||
|
# writable storage: ${HOME}/.config/koreader.
|
||
|
export KO_MULTIUSER=1
|
||
|
|
||
|
# working directory of koreader
|
||
|
KOREADER_DIR="${0%/*}/../Resources/koreader"
|
||
|
|
||
|
# we're always starting from our working directory
|
||
|
cd "${KOREADER_DIR}" || exit
|
||
|
RETURN_VALUE=85
|
||
|
while [ ${RETURN_VALUE} -eq 85 ]; do
|
||
|
./reader.lua "${ARGS}"
|
||
|
RETURN_VALUE=$?
|
||
|
done
|
||
|
|
||
|
# remove the flag to avoid emulator confusion
|
||
|
export -n KO_MULTIUSER
|
||
|
|
||
|
exit ${RETURN_VALUE}
|