mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
kobo: minor cleanups
This commit is contained in:
committed by
Frans de Jonge
parent
3644299a66
commit
e04f1800ba
@@ -10,7 +10,9 @@ UNPACK_DIR="${KOREADER_DIR%/*}"
|
||||
# We rely on starting from our working directory, and it needs to be set, sane and absolute.
|
||||
cd "${KOREADER_DIR:-/dev/null}" || exit
|
||||
|
||||
# To make USBMS behave, relocalize ourselves outside of onboard
|
||||
# To make USBMS behave, relocalize ourselves outside of onboard. Additionally,
|
||||
# this is used by KOReader to detect if the original script has changed after
|
||||
# an update (requiring a complete restart from the parent launcher).
|
||||
if [ "${SCRIPT_DIR}" != "/tmp" ]; then
|
||||
cp -pf "${0}" "/tmp/koreader.sh"
|
||||
chmod 777 "/tmp/koreader.sh"
|
||||
|
||||
Reference in New Issue
Block a user