minor: redirect all output to crash.log

pull/1900/head
Qingping Hou 8 years ago
parent d93e1a8a8e
commit dceaa01250

@ -242,7 +242,7 @@ logmsg "Starting KOReader . . ."
if [ "${FROM_KUAL}" == "yes" ] ; then
eips_print_bottom_centered "Starting KOReader . . ." 1
fi
./reader.lua "$@" 2> 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)
if pidof reader.lua > /dev/null 2>&1 ; then

@ -86,7 +86,7 @@ if awk '$4~/(^|,)ro($|,)/' /proc/mounts | grep ' /mnt/sd ' ; then
mount -o remount,rw /mnt/sd
fi
./reader.lua "${args}" 2> crash.log
./reader.lua "${args}" > crash.log 2>&1
if [ "${FROM_NICKEL}" == "true" ] ; then
# start kobo software because it was running before koreader

@ -33,7 +33,7 @@ else
args="$@"
fi
./reader.lua "$args" 2> crash.log
./reader.lua "$args" > crash.log 2>&1
if pidof reader.lua > /dev/null 2>&1 ; then
killall -TERM reader.lua

Loading…
Cancel
Save