From 52f9adf176a41a02b920f0738086ffbd37e31959 Mon Sep 17 00:00:00 2001 From: jiajia tang Date: Thu, 7 Jul 2022 11:12:12 +0800 Subject: [PATCH] boot_reason: Add reasons for boot_reason_test.sh Add "power_on_key" and "power_on_cable" to match heuristics in system/core/bootstat/bootstat.cpp Change-Id: I947026d658c8a385aab7a3ade9efacffb9538d56 Signed-off-by: jiajia tang --- bootstat/boot_reason_test.sh | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/bootstat/boot_reason_test.sh b/bootstat/boot_reason_test.sh index 7cff7dc9f..299b5d494 100755 --- a/bootstat/boot_reason_test.sh +++ b/bootstat/boot_reason_test.sh @@ -518,20 +518,20 @@ validate_reason() { reboot,bootloader | reboot,bootloader,* ) var=${var#reboot,} ; var=${var%,} ;; reboot | reboot,?* ) ;; # Aliases and Heuristics - *wdog* | *watchdog* ) var="watchdog" ;; - *powerkey* | *power_key* | *PowerKey* ) var="cold,powerkey" ;; - *panic* | *kernel_panic* ) var="kernel_panic" ;; - *thermal* ) var="shutdown,thermal" ;; - *s3_wakeup* ) var="warm,s3_wakeup" ;; - *hw_reset* ) var="hard,hw_reset" ;; - *usb* ) var="cold,charger" ;; - *rtc* ) var="cold,rtc" ;; - *2sec_reboot* ) var="cold,rtc,2sec" ;; - *wdt_by_pass_pwk* ) var="warm" ;; - wdt ) var="reboot" ;; - *tool_by_pass_pwk* ) var="reboot,tool" ;; - *bootloader* ) var="bootloader" ;; - * ) var="reboot" ;; + *wdog* | *watchdog* ) var="watchdog" ;; + *powerkey* | *power_on_key* | *power_key* | *PowerKey* ) var="cold,powerkey" ;; + *panic* | *kernel_panic* ) var="kernel_panic" ;; + *thermal* ) var="shutdown,thermal" ;; + *s3_wakeup* ) var="warm,s3_wakeup" ;; + *hw_reset* ) var="hard,hw_reset" ;; + *usb* | *power_on_cable* ) var="cold,charger" ;; + *rtc* ) var="cold,rtc" ;; + *2sec_reboot* ) var="cold,rtc,2sec" ;; + *wdt_by_pass_pwk* ) var="warm" ;; + wdt ) var="reboot" ;; + *tool_by_pass_pwk* ) var="reboot,tool" ;; + *bootloader* ) var="bootloader" ;; + * ) var="reboot" ;; esac echo ${var} }