mirror of
https://github.com/ps1x/onexplayer-superxcontrol.git
synced 2026-05-13 12:58:47 +00:00
15 lines
555 B
Desktop File
15 lines
555 B
Desktop File
[Unit]
|
|
Description=OXP SuperX Fan Control Daemon
|
|
After=systemd-modules-load.service
|
|
Wants=systemd-modules-load.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStartPre=/usr/sbin/modprobe oxp-sensors
|
|
ExecStartPre=/bin/sh -c 'for i in $(seq 1 20); do for d in /sys/class/hwmon/hwmon*; do [ -r "$d/name" ] || continue; [ "$(cat "$d/name")" = "oxpec" ] && exit 0; done; sleep 0.5; done; echo "oxpec hwmon device not found after loading oxp-sensors" >&2; exit 1'
|
|
ExecStart=/usr/local/bin/oxp-fan-control.py
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|