From 2249b07eb8c49f2bae5e0ff96700fa61faed3944 Mon Sep 17 00:00:00 2001 From: Tom Cherry Date: Wed, 30 Oct 2019 14:52:01 -0700 Subject: [PATCH] logcat: fix logpersist.stop and logpersist.clear Test: these work Change-Id: Ib0b0b5408c93a05f39d1b585256a2c7c34736e7e --- logcat/logpersist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logcat/logpersist b/logcat/logpersist index c09b6b212..05b46f047 100755 --- a/logcat/logpersist +++ b/logcat/logpersist @@ -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 ""