Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: silverbluep on 24 November 2018, 20:28:45

Title: iwd on openrc
Post by: silverbluep on 24 November 2018, 20:28:45
Hello. I'm new and trying to migrate from arch (dual booting atm)

I am currently missing several openrc start scripts to replace my crucial system daemons. The most important is for iwd. Does anyone know where I can grab an openrc start script (I tried looking through the gentoo package (https://packages.gentoo.org/packages/net-wireless/iwd) but couldn't find anything)

I could write my own I guess, but haven't delved into it too much yet.
Title: Re: iwd on openrc
Post by: nous on 24 November 2018, 21:04:10
The Gentoo folks have provided it, it's just a little hard to find (https://gitweb.gentoo.org/repo/gentoo.git/tree/net-wireless/iwd/files/iwd.initd). Below, a version adapted to Artix, use it until we put it in our repos.
Code: [Select]
#!/usr/bin/openrc-run
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

pidfile="/run/iwd.pid"
command="/usr/lib/iwd/iwd"
command_background="yes"

depend() {
need dbus
keyword -shutdown
}
Title: Re: iwd on openrc
Post by: silverbluep on 25 November 2018, 00:18:17
Thank you!

Just a quick question. I'll need to add  --nointerfaces "wlan[0-9]*" as arguments to iwd; does initd use bash syntax? (Can I get away by escaping the inner " or using ' for string?)
Title: Re: iwd on openrc
Post by: nous on 26 November 2018, 13:30:50
You won't know unless you try!  ;)
Title: Re: iwd on openrc
Post by: physkets on 17 March 2019, 13:39:30
@nous Is this package still pending?