summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2012-04-03 14:30:01 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2012-04-03 14:32:03 -0700
commit37af1693b48c314224ecd207c2afa6291208412b (patch)
treea42b817e8c0553bfee9640cf3af0620ac705c562
parent9127684553ea7b0f9285bc3fbe6c554f4519016c (diff)
downloadopenrc-37af1693b48c314224ecd207c2afa6291208412b.tar.gz
openrc-37af1693b48c314224ecd207c2afa6291208412b.tar.bz2
openrc-37af1693b48c314224ecd207c2afa6291208412b.tar.xz
net/ifconfig, net/iproute: need sysfs
sysfs needs to be available before we can check interfaces. On udev systems this was not a problem, but with mdev/static-dev, there is no other need for sysfs until later in the init. X-Gentoo-Bug: 410701 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=410701 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--net/ifconfig.sh.Linux.in3
-rw-r--r--net/iproute2.sh3
2 files changed, 6 insertions, 0 deletions
diff --git a/net/ifconfig.sh.Linux.in b/net/ifconfig.sh.Linux.in
index 8abc998..a7e3e74 100644
--- a/net/ifconfig.sh.Linux.in
+++ b/net/ifconfig.sh.Linux.in
@@ -5,6 +5,9 @@ ifconfig_depend()
{
program /sbin/ifconfig /bin/ifconfig
provide interface
+ case "${IFACE}" in
+ lo|lo0) need sysfs ;;
+ esac
}
_up()
diff --git a/net/iproute2.sh b/net/iproute2.sh
index b420e41..c290331 100644
--- a/net/iproute2.sh
+++ b/net/iproute2.sh
@@ -6,6 +6,9 @@ iproute2_depend()
program ip
provide interface
after ifconfig
+ case "${IFACE}" in
+ lo|lo0) need sysfs ;;
+ esac
}
_up()