1 |
commit: be5de328e9aa4d35a8222e1c4c2358bb9a07449c |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 4 01:01:23 2012 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 4 01:01:23 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=be5de328 |
7 |
|
8 |
network scripts need sysfs on linux systems |
9 |
|
10 |
Adjust the previous commit so that on linux systems the network scripts |
11 |
need sysfs. |
12 |
|
13 |
--- |
14 |
init.d/net.lo.in | 3 +++ |
15 |
net/ifconfig.sh.Linux.in | 3 --- |
16 |
net/iproute2.sh | 3 --- |
17 |
3 files changed, 3 insertions(+), 6 deletions(-) |
18 |
|
19 |
diff --git a/init.d/net.lo.in b/init.d/net.lo.in |
20 |
index 8a186a0..6bf49b5 100644 |
21 |
--- a/init.d/net.lo.in |
22 |
+++ b/init.d/net.lo.in |
23 |
@@ -19,6 +19,9 @@ depend() |
24 |
local IFVAR=$(shell_var "${IFACE}") |
25 |
|
26 |
need localmount |
27 |
+ if [ "$RC_UNAME" = Linux ]; then |
28 |
+ need sysfs |
29 |
+ fi |
30 |
after bootmisc |
31 |
keyword -jail -vserver |
32 |
|
33 |
|
34 |
diff --git a/net/ifconfig.sh.Linux.in b/net/ifconfig.sh.Linux.in |
35 |
index a7e3e74..8abc998 100644 |
36 |
--- a/net/ifconfig.sh.Linux.in |
37 |
+++ b/net/ifconfig.sh.Linux.in |
38 |
@@ -5,9 +5,6 @@ ifconfig_depend() |
39 |
{ |
40 |
program /sbin/ifconfig /bin/ifconfig |
41 |
provide interface |
42 |
- case "${IFACE}" in |
43 |
- lo|lo0) need sysfs ;; |
44 |
- esac |
45 |
} |
46 |
|
47 |
_up() |
48 |
|
49 |
diff --git a/net/iproute2.sh b/net/iproute2.sh |
50 |
index c290331..b420e41 100644 |
51 |
--- a/net/iproute2.sh |
52 |
+++ b/net/iproute2.sh |
53 |
@@ -6,9 +6,6 @@ iproute2_depend() |
54 |
program ip |
55 |
provide interface |
56 |
after ifconfig |
57 |
- case "${IFACE}" in |
58 |
- lo|lo0) need sysfs ;; |
59 |
- esac |
60 |
} |
61 |
|
62 |
_up() |