crash.log(fix): obviously I suck at counting zeros

pull/2416/head
Qingping Hou 7 years ago
parent 11f55d2aff
commit 744115de9f

@ -244,8 +244,8 @@ if [ "${FROM_KUAL}" == "yes" ] ; then
eips_print_bottom_centered "Starting KOReader . . ." 1
fi
# we keep maximum 100K worth of crash log
cat crash.log 2> /dev/null | tail -c 100000000 > crash.log.new
# we keep maximum 500K worth of crash log
cat crash.log 2> /dev/null | tail -c 500000 > crash.log.new
mv -f crash.log.new crash.log
./reader.lua "$@" >> crash.log 2>&1

@ -111,8 +111,8 @@ if awk '$4~/(^|,)ro($|,)/' /proc/mounts | grep ' /mnt/sd ' ; then
mount -o remount,rw /mnt/sd
fi
# we keep maximum 100K worth of crash log
cat crash.log 2> /dev/null | tail -c 100000000 > crash.log.new
# we keep maximum 500K worth of crash log
cat crash.log 2> /dev/null | tail -c 500000 > crash.log.new
mv -f crash.log.new crash.log
./reader.lua "${args}" >> crash.log 2>&1
RESULT=$?

@ -33,8 +33,8 @@ else
args="$@"
fi
# we keep maximum 100K worth of crash log
cat crash.log 2> /dev/null | tail -c 100000000 > crash.log.new
# we keep maximum 500K worth of crash log
cat crash.log 2> /dev/null | tail -c 500000 > crash.log.new
mv -f crash.log.new crash.log
./reader.lua "$args" >> crash.log 2>&1

Loading…
Cancel
Save