Skip to contentSkip to conversation

thermal-init: exit if no thermal control is available

PATCH New Denys Dmytriyenko 1 participant 1 message Aug 26, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thermal-init: exit if no thermal control is available

From: Denys Dmytriyenko <[email protected]>

---
 meta-arago-distro/recipes-core/thermal-init/thermal-init.bb   | 2 +-
 meta-arago-distro/recipes-core/thermal-init/thermal-init/init | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
meta-arago-distro/recipes-core/thermal-init/thermal-init.bb +1 -1
index e564b1e..0bc76e0 100644
@@ -2,7 +2,7 @@ DESCRIPTION = "Init script to enable cpu_thermal zones"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690"
 
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "file://init"
 
meta-arago-distro/recipes-core/thermal-init/thermal-init/init +4 -0
index 15fdeac..b7e8a36 100644
@@ -1,5 +1,9 @@
 #!/bin/sh
 
+if [ ! -d /sys/class/thermal ]; then
+    exit 0
+fi
+
 case "$1" in
     start )
         echo "Enabling thermal zones..."
Signature · 1 line
2.7.4