Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: net/
Date: Tue, 03 Apr 2012 21:32:06
Message-Id: 1333488723.37af1693b48c314224ecd207c2afa6291208412b.robbat2@gentoo
1 commit: 37af1693b48c314224ecd207c2afa6291208412b
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 3 21:30:01 2012 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 3 21:32:03 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=37af1693
7
8 net/ifconfig, net/iproute: need sysfs
9
10 sysfs needs to be available before we can check interfaces. On udev
11 systems this was not a problem, but with mdev/static-dev, there is no
12 other need for sysfs until later in the init.
13
14 X-Gentoo-Bug: 410701
15 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=410701
16 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
17
18 ---
19 net/ifconfig.sh.Linux.in | 3 +++
20 net/iproute2.sh | 3 +++
21 2 files changed, 6 insertions(+), 0 deletions(-)
22
23 diff --git a/net/ifconfig.sh.Linux.in b/net/ifconfig.sh.Linux.in
24 index 8abc998..a7e3e74 100644
25 --- a/net/ifconfig.sh.Linux.in
26 +++ b/net/ifconfig.sh.Linux.in
27 @@ -5,6 +5,9 @@ ifconfig_depend()
28 {
29 program /sbin/ifconfig /bin/ifconfig
30 provide interface
31 + case "${IFACE}" in
32 + lo|lo0) need sysfs ;;
33 + esac
34 }
35
36 _up()
37
38 diff --git a/net/iproute2.sh b/net/iproute2.sh
39 index b420e41..c290331 100644
40 --- a/net/iproute2.sh
41 +++ b/net/iproute2.sh
42 @@ -6,6 +6,9 @@ iproute2_depend()
43 program ip
44 provide interface
45 after ifconfig
46 + case "${IFACE}" in
47 + lo|lo0) need sysfs ;;
48 + esac
49 }
50
51 _up()