pmaports/temp/iio-sensor-proxy/iio-sensor-proxy.initd
Joel Selvaraj 874dadcf04
temp/iio-sensor-proxy: workaround the hexagonrpcd delay (MR 5099)
Needed for some devices like the OP6T and AYN Odin
2024-05-18 09:41:41 +02:00

16 lines
453 B
Text

#!/sbin/openrc-run
supervisor=supervise-daemon
command="/usr/libexec/iio-sensor-proxy"
# In some devices like OP6T/AYN Odin hexagonrpcd might take longer time to get initialized
# and iio-sensor-proxy may die before that. Let's workaround it by adding a 10 seconds delay.
# It doesnt break other devices and makes it work in devices like the OP6T and AYN Odin.
# This is just a temporary workaround.
start_pre() {
sleep 10
}
depend() {
need dbus
}