aboutsummaryrefslogtreecommitdiffstats
path: root/community/iwd/iwd.initd
blob: 3c6bdc001b9136bb8197d8055334b2ef4df9cba8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/sbin/openrc-run

description="iNet wireless daemon"

: ${error_logger="logger -t iwd -p daemon.info"}

command="/usr/libexec/iwd"
command_background="yes"
command_args="
	${allowed_interfaces:+"--interfaces \"$allowed_interfaces\""}
	${ignored_interfaces:+"--nointerfaces \"$ignored_interfaces\""}
	${command_args:-}
	"
pidfile="/run/$RC_SVCNAME.pid"

depend() {
	need dbus
	before net
	keyword -shutdown
}