From 892e3c0f1e5633d9fbc8626ff114d45bee101997 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Sun, 15 May 2016 20:52:46 +0200 Subject: [PATCH] Kobo startup script tweak. When using KFMon, make the reboot on exit user-configurable. The user can now choose to try to restart Nickel directly, like with fmon. For now, we still do a full reboot by default. --- platform/kobo/koreader.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/platform/kobo/koreader.sh b/platform/kobo/koreader.sh index 9647f3dc8..601f58cc8 100755 --- a/platform/kobo/koreader.sh +++ b/platform/kobo/koreader.sh @@ -118,9 +118,14 @@ if [ "${FROM_NICKEL}" = "true" ] ; then # start kobo software because it was running before koreader ./nickel.sh & else - # If we were called from KFMon, just reboot, because there's always a (hopefully slim to nonexistent, now) chance Nickel will get its panties in a serious twist on restore for one reason or another... - # And at best, we'd still restart with broken suspend behavior anyway... - reboot + if grep -q 'reboot_on_exit=false' /mnt/onboard/.adds/kfmon/config/koreader.ini 2>/dev/null ; then + # The user wants to try to restart Nickel instead of rebooting! + ./nickel.sh & + else + # By default, if we were called from KFMon, just reboot, because there might be a chance Nickel will get its panties in a serious twist on restore for one reason or another... + # And at best, we'd still restart with slightly broken suspend behavior anyway... + reboot + fi fi else # if we were called from advboot then we must reboot to go to the menu