From be5de328e9aa4d35a8222e1c4c2358bb9a07449c Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 3 Apr 2012 20:01:23 -0500 Subject: network scripts need sysfs on linux systems Adjust the previous commit so that on linux systems the network scripts need sysfs. --- init.d/net.lo.in | 3 +++ net/ifconfig.sh.Linux.in | 3 --- net/iproute2.sh | 3 --- 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() -- cgit v1.2.3