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