2023-05-02 02:02:33 +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
|
2023-05-02 22:06:07 +00:00
|
|
|
### Fan control is not working yet.
|
|
|
|
DEVICE_HAS_FAN=false
|
|
|
|
DEVICE_PWM_FAN="$(find /sys/devices/platform/oxp-platform/hwmon -name pwm1)"
|
|
|
|
DEVICE_TEMP_SENSOR="$(find /sys/devices/pci0000:00/ -name temp1_input | tr "\n" " ")"
|
2023-05-02 02:02:33 +00:00
|
|
|
EOF
|
|
|
|
|