@ -197,11 +197,11 @@ fi
if [ " ${ STOP_FRAMEWORK } " = = "no" -a " ${ INIT_TYPE } " = = "upstart" ] ; then
if [ " ${ STOP_FRAMEWORK } " = = "no" -a " ${ INIT_TYPE } " = = "upstart" ] ; then
count = $( lipc-get-prop -eiq com.github.koreader.kpvbooklet.timer count)
count = $( lipc-get-prop -eiq com.github.koreader.kpvbooklet.timer count)
if [ " $count " = = "" -o " $count " = = "0" ] ; then
if [ " $count " = = "" -o " $count " = = "0" ] ; then
# NOTE: Dump the fb so we can restore something useful on exit...
cat /dev/fb0 > /var/tmp/koreader-fb.dump
# NOTE: We want to disable the status bar (at the very least). Unfortunately, the soft hide/unhide method doesn't work properly anymore since FW 5.6.5...
# NOTE: We want to disable the status bar (at the very least). Unfortunately, the soft hide/unhide method doesn't work properly anymore since FW 5.6.5...
if [ " $( printf "%.3s" $( grep '^Kindle 5' /etc/prettyversion.txt 2>& 1 | sed -n -r 's/^(Kindle)([[:blank:]]*)([[:digit:].]*)(.*?)$/\3/p' | tr -d '.' ) ) " -ge "565" ] ; then
if [ " $( printf "%.3s" $( grep '^Kindle 5' /etc/prettyversion.txt 2>& 1 | sed -n -r 's/^(Kindle)([[:blank:]]*)([[:digit:].]*)(.*?)$/\3/p' | tr -d '.' ) ) " -ge "565" ] ; then
PILLOW_HARD_DISABLED = "yes"
PILLOW_HARD_DISABLED = "yes"
# NOTE: Dump the fb so we can restore something useful on exit...
cat /dev/fb0 > /var/tmp/koreader-fb.dump
# FIXME: So we resort to killing pillow completely on FW >= 5.6.5...
# FIXME: So we resort to killing pillow completely on FW >= 5.6.5...
logmsg "Disabling pillow . . ."
logmsg "Disabling pillow . . ."
lipc-set-prop com.lab126.pillow disableEnablePillow disable
lipc-set-prop com.lab126.pillow disableEnablePillow disable
@ -313,6 +313,10 @@ if [ "${STOP_FRAMEWORK}" == "no" -a "${INIT_TYPE}" == "upstart" ] ; then
if [ " ${ PILLOW_SOFT_DISABLED } " = = "yes" ] ; then
if [ " ${ PILLOW_SOFT_DISABLED } " = = "yes" ] ; then
logmsg "Restoring the status bar . . ."
logmsg "Restoring the status bar . . ."
lipc-set-prop com.lab126.pillow interrogatePillow '{"pillowId": "default_status_bar", "function": "nativeBridge.showMe();"}'
lipc-set-prop com.lab126.pillow interrogatePillow '{"pillowId": "default_status_bar", "function": "nativeBridge.showMe();"}'
# NOTE: Try to leave the user with a slightly more useful FB content than our own last screen...
cat /var/tmp/koreader-fb.dump > /dev/fb0
rm -f /var/tmp/koreader-fb.dump
lipc-set-prop com.lab126.appmgrd start app://com.lab126.booklet.home
fi
fi
fi
fi