|
|
@ -243,7 +243,11 @@ logmsg "Starting KOReader . . ."
|
|
|
|
if [ "${FROM_KUAL}" == "yes" ] ; then
|
|
|
|
if [ "${FROM_KUAL}" == "yes" ] ; then
|
|
|
|
eips_print_bottom_centered "Starting KOReader . . ." 1
|
|
|
|
eips_print_bottom_centered "Starting KOReader . . ." 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
./reader.lua "$@" > crash.log 2>&1
|
|
|
|
|
|
|
|
|
|
|
|
# we keep maximum 100K worth of crash log
|
|
|
|
|
|
|
|
cat crash.log &> /dev/null | tail -c 100000000 > crash.log.new
|
|
|
|
|
|
|
|
mv -f crash.log.new crash.log
|
|
|
|
|
|
|
|
./reader.lua "$@" >> crash.log 2>&1
|
|
|
|
|
|
|
|
|
|
|
|
# clean up our own process tree in case the reader crashed (if needed, to avoid flooding KUAL's log)
|
|
|
|
# clean up our own process tree in case the reader crashed (if needed, to avoid flooding KUAL's log)
|
|
|
|
if pidof reader.lua > /dev/null 2>&1 ; then
|
|
|
|
if pidof reader.lua > /dev/null 2>&1 ; then
|
|
|
|