Merge pull request #1564 from Frenzie/koreader.sh

Fix KOReader exit
pull/1571/head v2015.06.25-nightly
Huang Xin 9 years ago
commit 0b45394a7f

@ -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

Loading…
Cancel
Save