Gentoo Archives: gentoo-user

From: Florian Philipp <lists@×××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Order in which init scripts providing a service are tried
Date: Fri, 12 Oct 2012 17:17:53
Message-Id: 5078505F.5050906@binarywings.net
In Reply to: [gentoo-user] Order in which init scripts providing a service are tried by "José Romildo Malaquias"
1 Am 12.10.2012 18:41, schrieb José Romildo Malaquias:
2 > Hello.
3 >
4 > There are some init scripts that provide network connection on my gentoo
5 > system: net.eth0, net.wlan0, net.wlan1, NetworkManager and connman. All
6 > of them provide the "net" service. (connman init script has been edited
7 > to provide "net", as the original installed one does not provide it -
8 > see bug https://bugs.gentoo.org/show_bug.cgi?id=438142)
9 >
10 > I want connman chosen to provide "net".
11 >
12 > The init system first tries the net.* scripts. So I removed them (they
13 > are symlinks to net.lo, which should not be removed).
14 >
15 > Then the init system tries NetworkManager. I do not want to remove it
16 > because it is installed as a dependence to some other packages.
17 >
18 > I have tried adding a 'before "NetworkManager"' clause in the connman
19 > init script, but it did not help.
20 >
21 > How can I tell the init system to try connman before all other init
22 > scripts providing "net"?
23 >
24 > Any clues?
25 >
26 > Romildo
27 >
28
29 I don't know how to force openrc to use a specific net provider but you
30 can try to toggle the rc_depend_strict setting in /etc/rc.conf.
31
32 You can also try to add a line like
33 rc_networkmanager_provide="!net"
34
35 Regards,
36 Florian Philipp

Attachments

File name MIME type
signature.asc application/pgp-signature