logcat: fix logpersist.stop and logpersist.clear

Test: these work
Change-Id: Ib0b0b5408c93a05f39d1b585256a2c7c34736e7e
This commit is contained in:
Tom Cherry 2019-10-30 14:52:01 -07:00
parent 98c6c3304a
commit 2249b07eb8

View file

@ -148,9 +148,9 @@ case ${progname} in
echo "WARNING: Can not use --size or --buffer with ${progname%.*}.stop" >&2
fi
if [ "true" = "${clear}" ]; then
setprop ${property} "clear"
setprop ${property#persist.} "clear"
else
setprop ${property} "stop"
setprop ${property#persist.} "stop"
fi
if [ -n "`getprop ${property#persist.}.buffer`" ]; then
setprop ${property}.buffer ""