On Wed, Aug 17, 2016 at 2:59 AM, Martin Vaeth <mar...@mvath.de> wrote: > William Hubbs <willi...@gentoo.org> wrote: >> >> but I'm open to making the behaviour compatible >> with what systemd does > > Since openrc already supports tmpfiles.d, > support for modules-load.d would be natural. > In fact, this is already done for quite a while in > > https://github.com/vaeth/firewall-mv/blob/master/openrc/conf.d/modules > > The last line supports modules-load.d: > > modules=$(sed -n -e '/^[^;#]/p' /etc/modules-load.d/*.conf \ > /usr/lib/modules-load.d/*.conf 2>/dev/null || : )
This simple implementation does not follow the precedence rules documented in modules-load.d(5).