1 |
commit: d7116631894badd88f334b4ef5cd6e3ee585b801 |
2 |
Author: Andrew Gregory <andrew.gregory.8 <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Aug 19 03:47:04 2013 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 6 19:24:58 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=d7116631 |
7 |
|
8 |
network.in: skip loopback device |
9 |
|
10 |
The loopback interface is supposed to be handled by the loopback |
11 |
service, but sys_interfaces includes it. This causes network to try to |
12 |
start it and means that network provides net even if lo is the only |
13 |
interface configured. |
14 |
|
15 |
Signed-off-by: Andrew Gregory <andrew.gregory.8 <AT> gmail.com> |
16 |
|
17 |
--- |
18 |
init.d/network.in | 6 +++++- |
19 |
1 file changed, 5 insertions(+), 1 deletion(-) |
20 |
|
21 |
diff --git a/init.d/network.in b/init.d/network.in |
22 |
index 5a87a84..17237d3 100644 |
23 |
--- a/init.d/network.in |
24 |
+++ b/init.d/network.in |
25 |
@@ -46,7 +46,11 @@ sys_interfaces() |
26 |
local w= rest= i= cmd=$1 |
27 |
while read w rest; do |
28 |
i=${w%%:*} |
29 |
- [ "$i" != "$w" ] || continue |
30 |
+ case "$i" in |
31 |
+ "$w") continue ;; |
32 |
+ lo|lo0) continue ;; |
33 |
+ *) ;; |
34 |
+ esac |
35 |
if [ "$cmd" = u ]; then |
36 |
ifconfig "$i" | grep -q "[ ]*UP" || continue |
37 |
fi |