2023-05-01 14:22:39 +02:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
supervisor=supervise-daemon
|
|
|
|
command="/usr/libexec/iio-sensor-proxy"
|
|
|
|
|
2024-05-17 02:53:36 -05:00
|
|
|
# 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
|
|
|
|
}
|
|
|
|
|
2023-05-01 14:22:39 +02:00
|
|
|
depend() {
|
|
|
|
need dbus
|
|
|
|
}
|