18 lines
503 B
Bash
18 lines
503 B
Bash
#!/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
|
|
### 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" " ")"
|
|
EOF
|
|
|