Merge pull request #1514 from NiLuJe/master

Fix startup scripts.
pull/1521/head v2015.04.30-nightly
Huang Xin 9 years ago
commit 1de1a443b0

@ -208,7 +208,7 @@ fi
./reader.lua "$@" 2> crash.log
# clean up our own process tree in case the reader crashed (if needed, to avoid flooding KUAL's log)
if pkill -0 reader.lua ; then
if pidof reader.lua > /dev/null 2>&1 ; then
logmsg "Sending a SIGTERM to stray KOreader processes . . ."
killall -TERM reader.lua
fi

@ -89,7 +89,7 @@ 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:
# This might lead to false-positives if you use neither KSM nor advboot to launch KOReader *without nickel running*.
if ! pidof ksmhome.sh > /dev/null 2>&1 ; then
if ! pgrep -f ksmhome.sh > /dev/null 2>&1 ; then
reboot
fi
fi

Loading…
Cancel
Save