aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2012-04-03 20:01:23 -0500
committerWilliam Hubbs <williamh@gentoo.org>2012-04-03 20:01:23 -0500
commitbe5de328e9aa4d35a8222e1c4c2358bb9a07449c (patch)
treea8b0715dd965ad449587ce46146e1b38be15cd43
parent37af1693b48c314224ecd207c2afa6291208412b (diff)
network scripts need sysfs on linux systems
Adjust the previous commit so that on linux systems the network scripts need sysfs.
-rw-r--r--init.d/net.lo.in3
-rw-r--r--net/ifconfig.sh.Linux.in3
-rw-r--r--net/iproute2.sh3
3 files changed, 3 insertions, 6 deletions
diff --git a/init.d/net.lo.in b/init.d/net.lo.in
index 8a186a0b..6bf49b5d 100644
--- a/init.d/net.lo.in
+++ b/init.d/net.lo.in
@@ -19,6 +19,9 @@ depend()
local IFVAR=$(shell_var "${IFACE}")
need localmount
+ if [ "$RC_UNAME" = Linux ]; then
+ need sysfs
+ fi
after bootmisc
keyword -jail -vserver
diff --git a/net/ifconfig.sh.Linux.in b/net/ifconfig.sh.Linux.in
index a7e3e743..8abc9983 100644
--- a/net/ifconfig.sh.Linux.in
+++ b/net/ifconfig.sh.Linux.in
@@ -5,9 +5,6 @@ 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 c290331d..b420e41b 100644
--- a/net/iproute2.sh
+++ b/net/iproute2.sh
@@ -6,9 +6,6 @@ iproute2_depend()
program ip
provide interface
after ifconfig
- case "${IFACE}" in
- lo|lo0) need sysfs ;;
- esac
}
_up()