diff options
author | William Hubbs <williamh@gentoo.org> | 2012-02-07 17:10:10 -0600 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2012-02-18 13:48:11 -0600 |
commit | bc581530e5caa4e2c82d1c3deb9f0382a440e8ec (patch) | |
tree | d967b3e6f32e7b690d18e220e299e24a78234bcb | |
parent | 04afaa3c03ac7400c06a6b5f17cee99cdd4bfaeb (diff) |
Fix meaning of "provide net"
I was informed that "provide net" should mean that there is network
communication outside the local computer. In this case, the loopback
interface can't "provide net", but there needs to be a way for other
processes to know that the loopback interface is active.
To this end, this commit makes the loopback "provide lo" and all other
interfaces "provide net".
-rw-r--r-- | init.d/net.lo.in | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/init.d/net.lo.in b/init.d/net.lo.in index bf2d848b..4e11deca 100644 --- a/init.d/net.lo.in +++ b/init.d/net.lo.in @@ -20,12 +20,14 @@ depend() need localmount after bootmisc - provide net keyword -jail -prefix -vserver case "${IFACE}" in - lo|lo0);; - *) after net.lo net.lo0 dbus;; + lo|lo0) provide lo;; + *) + after net.lo net.lo0 dbus + provide net + ;; esac if [ "$(command -v "depend_${IFVAR}")" = "depend_${IFVAR}" ]; then |