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>
This commit is contained in:
Robin H. Johnson 2012-04-03 14:30:01 -07:00
parent 9127684553
commit 37af1693b4
2 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,9 @@ ifconfig_depend()
{
program /sbin/ifconfig /bin/ifconfig
provide interface
case "${IFACE}" in
lo|lo0) need sysfs ;;
esac
}
_up()

View File

@ -6,6 +6,9 @@ iproute2_depend()
program ip
provide interface
after ifconfig
case "${IFACE}" in
lo|lo0) need sysfs ;;
esac
}
_up()