Skip to contentSkip to conversation

thermal-init: remove the thermal-init script

PATCH New [email protected] 1 participant 1 message May 21, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thermal-init: remove the thermal-init script

From: Randolph Sapp <[email protected]>

Thermal zones defined in dt are enabled by default. This script just adds a service that can be disabled to switch all thermal zones to kernel unmanaged.

We should not attempt to do that ourselves, as we could potentially interfere with other userspace tools like thermald.

---
 .../packagegroups/packagegroup-arago-base.bb  |  1 -
 .../recipes-core/thermal-init/thermal-init.bb | 19 ----------------
 .../thermal-init/thermal-init/init            | 22 -------------------
 3 files changed, 42 deletions(-)
 delete mode 100644 meta-arago-distro/recipes-core/thermal-init/thermal-init.bb
 delete mode 100644 meta-arago-distro/recipes-core/thermal-init/thermal-init/init
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base.bb +0 -1
index 1971d45c..8b37aab9 100644
@@ -19,7 +19,6 @@ ARAGO_BASE = "\
     initscript-telnetd \
     systemd-telnetd \
     ethtool \
-    thermal-init \
     bash \
     opkg-bash-completion \
     udev-extraconf \
meta-arago-distro/recipes-core/thermal-init/thermal-init.bb deleted +0 -19
deleted file mode 100644
index 56f1ba1a..00000000
@@ -1,19 +0,0 @@
-DESCRIPTION = "Init script to enable cpu_thermal zones"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
-
-PR = "r1"
-
-SRC_URI = "file://init"
-
-INITSCRIPT_NAME = "thermal-zone-init"
-INITSCRIPT_PARAMS = "defaults 98"
-
-inherit update-rc.d
-
-do_install() {
-    install -d ${D}${sysconfdir}/init.d
-    install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
-}
-
-FILES:${PN} = "${sysconfdir} ${bindir}"
meta-arago-distro/recipes-core/thermal-init/thermal-init/init deleted +0 -22
deleted file mode 100644
index b7e8a36a..00000000
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-if [ ! -d /sys/class/thermal ]; then
-    exit 0
-fi
-
-case "$1" in
-    start )
-        echo "Enabling thermal zones..."
-        for i in /sys/class/thermal/thermal_zone*/mode; do
-            echo enabled > $i
-        done
-    ;;
-    stop )
-        echo "Disabling thermal zones..."
-        for i in /sys/class/thermal/thermal_zone*/mode; do
-            echo disabled > $i
-        done
-    ;;
-esac
-
-exit 0
Signature · 1 line
2.45.1