#!/bin/bash # SPDX-License-Identifier: GPL-2.0 # Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS) cat </storage/.config/profile.d/020-fan_control DEVICE_HAS_FAN="true" DEVICE_PWM_FAN="$(find /sys/devices/platform/oxp-platform -name pwm1)" DEVICE_FAN_INPUT="$(find /sys/devices/platform/oxp-platform -name fan*_input)" DEVICE_TEMP_SENSOR="$(find /sys/devices/pci*/*/hwmon -path "*/nvme" -prune -o -name temp1_input -print)" EOF