From 475ee2817370015c61f3e23a8a4f901ebed19154 Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Fri, 19 Jun 2015 19:53:37 +0200 Subject: [PATCH] Fix KOReader exit Should reboot less unnecessarily for older versions of KSM, and hopefully this would also be more forward-compatible. --- platform/kobo/koreader.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/kobo/koreader.sh b/platform/kobo/koreader.sh index 3983477e7..f85ee00be 100755 --- a/platform/kobo/koreader.sh +++ b/platform/kobo/koreader.sh @@ -87,9 +87,9 @@ if [ "${from_nickel}" == "true" ] ; then ./nickel.sh & else # if we were called from advboot then we must reboot to go to the menu - # NOTE: This is actually achieved by checking if KSM is running: + # NOTE: This is actually achieved by checking if KSM or a KSM-related script is running: # This might lead to false-positives if you use neither KSM nor advboot to launch KOReader *without nickel running*. - if ! pgrep -f ksmhome.sh > /dev/null 2>&1 ; then + if ! pgrep -f kbmenu > /dev/null 2>&1 ; then reboot fi fi