aboutsummaryrefslogtreecommitdiffstats
path: root/community/iwd/iwd.initd
blob: df5cfb5d72ab08fee390dffc2fa43862194e5bbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/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
}