2022-12-19 22:14:32 +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/devices/platform/oxp-platform/hwmon/hwmon4/pwm1"
|
2022-12-21 22:24:01 +00:00
|
|
|
DEVICE_TEMP_SENSOR="/sys/class/hwmon/hwmon1/temp1_input /sys/class/hwmon/hwmon3/temp1_input"
|
2022-12-19 22:14:32 +00:00
|
|
|
EOF
|
|
|
|
|