1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/iwd/iwd.initd
2021-08-05 00:35:58 +02:00

25 lines
537 B
Text

#!/sbin/openrc-run
description="iNet wireless daemon"
: ${error_logger="logger -t iwd -p daemon.info"}
: ${start_wait=50} # milliseconds
command="/usr/libexec/iwd"
command_background="yes"
command_args="
${allowed_interfaces:+"--interfaces \"$allowed_interfaces\""}
${ignored_interfaces:+"--nointerfaces \"$ignored_interfaces\""}
${command_args:-}
"
start_stop_daemon_args="
${start_wait:+--wait $start_wait}
${start_stop_daemon_args:-}
"
pidfile="/run/$RC_SVCNAME.pid"
depend() {
need dbus
before net
keyword -shutdown
}