From 2f004489797ceb59000fffbb874368bdc1897067 Mon Sep 17 00:00:00 2001
From: ItsVixano <giovanniricca@protonmail.com>
Date: Sun, 27 Feb 2022 13:13:19 +0100
Subject: [PATCH] sm8350-common: rootdir: Update mi_thermald init script

* From odin V12.5.12.0.RKMCNXM

Change-Id: I5509271b0cdb23e40f8fb4186b740c66d79fe069
---
 rootdir/etc/init.mi_thermald.rc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/rootdir/etc/init.mi_thermald.rc b/rootdir/etc/init.mi_thermald.rc
index c9e090f..4491d62 100644
--- a/rootdir/etc/init.mi_thermald.rc
+++ b/rootdir/etc/init.mi_thermald.rc
@@ -1,4 +1,8 @@
 on charger
+    wait /sys/class/power_supply/battery/temp
+    start mi_thermald
+on boot
+    wait /sys/class/power_supply/battery/temp
     start mi_thermald
 
 service mi_thermald /system/vendor/bin/mi_thermald
-- 
GitLab