From 8e925368b7a07df23bc168ce4f50dc826181411b Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sun, 10 Apr 2011 16:10:47 -0500 Subject: bring up the loopback interface earlier For most situations, the loopback interface can depend on root instead of localmount, so this patch makes that happen. It also adds comments to the net.example files explaining when a user might want to change this and giving an example. I would like to thank Robin Johnson for the original patch and suggested examples. X-Gentoo-Bug: 292894 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=292894 Signed-off-by: Robin H. Johnson --- init.d/net.lo.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'init.d/net.lo.in') diff --git a/init.d/net.lo.in b/init.d/net.lo.in index 8f4ea9ba..1615b0ce 100644 --- a/init.d/net.lo.in +++ b/init.d/net.lo.in @@ -18,14 +18,13 @@ depend() local IFACE=${RC_SVCNAME#*.} local IFVAR=$(shell_var "${IFACE}") - need localmount after bootmisc provide net keyword -jail -prefix -vserver case "${IFACE}" in - lo|lo0);; - *) after net.lo net.lo0;; + lo|lo0) need root ;; + *) after net.lo net.lo0 ; need localmount ;; esac if [ "$(command -v "depend_${IFVAR}")" = "depend_${IFVAR}" ]; then -- cgit v1.2.3