distribution/packages/hardware/quirks/devices/AYANEO AIR Plus/002-fancontrol

18 lines
538 B
Text
Raw Normal View History

#!/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/devices/platform/oxp-platform/hwmon/hwmon5/pwm1"
DEVICE_TEMP_SENSOR="/sys/class/hwmon/hwmon2/temp1_input /sys/class/hwmon/hwmon3/temp1_input /sys/class/hwmon/hwmon4/temp1_input /sys/class/hwmon/hwmon5/temp1_input"
EOF