distribution/packages/hardware/quirks/devices/Anbernic RG552/002-fancontrol

17 lines
467 B
Text
Raw Normal View History

2023-06-23 20:55:05 +00:00
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
. /etc/profile
if [ ! -d "/storage/.config/profile.d" ]
then
mkdir -p /storage/.config/profile.d
fi
cat <<EOF >/storage/.config/profile.d/002-fancontrol
DEVICE_HAS_FAN=true
DEVICE_PWM_FAN="/sys/class/hwmon/hwmon1/pwm1"
2023-06-28 12:52:36 +00:00
DEVICE_TEMP_SENSOR="/sys/devices/virtual/thermal/thermal_zone0/temp" "/sys/devices/virtual/thermal/thermal_zone1/temp"
2023-06-23 20:55:05 +00:00
EOF