diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2017-05-13 00:29:10 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2017-05-13 00:29:10 +0800 |
commit | a8a65c6c4b701ff6040efbe0b48ee52af3459b49 (patch) | |
tree | f79cb1b0e2522dd53a5020bc78fb7b2e873ae35d /android/scripts | |
parent | 2b26706ffe60224ea87b7c9c5fa9561350e32dcb (diff) |
boottime2.sh: ignore case for the grep command
"Starting service 'logd'" changed to "starting service 'logd'"
in O preview build, so we specify -i for the grep command to
search with ignoring case
Change-Id: I3bc5d49d219e0646dea7be33f10d7e2d7c65caa8
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Diffstat (limited to 'android/scripts')
-rwxr-xr-x | android/scripts/boottime2.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android/scripts/boottime2.sh b/android/scripts/boottime2.sh index ca4fd8c..ac43795 100755 --- a/android/scripts/boottime2.sh +++ b/android/scripts/boottime2.sh @@ -96,7 +96,7 @@ getTime(){ return fi - key_line=$(grep "${key}" "${LOG_DMESG}") + key_line=$(grep -i "${key}" "${LOG_DMESG}") if [ -n "${key_line}" ]; then timestamp=$(echo "${key_line}"|awk '{print $2}' | awk -F "]" '{print $1}') echo "${timestamp}" @@ -112,7 +112,7 @@ getTimeStampFromLogcat(){ return fi - key_line=$(grep "${key}" "${LOG_LOGCAT_ALL}") + key_line=$(grep -i "${key}" "${LOG_LOGCAT_ALL}") if [ -n "${key_line}" ]; then timestamp_sec=$(echo "${key_line}"|awk '{print $2}' | awk -F ":" '{print $3}') timestamp_min=$(echo "${key_line}"|awk '{print $2}' | awk -F ":" '{print $2}') |