From d7116631894badd88f334b4ef5cd6e3ee585b801 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Sun, 18 Aug 2013 23:47:04 -0400 Subject: network.in: skip loopback device The loopback interface is supposed to be handled by the loopback service, but sys_interfaces includes it. This causes network to try to start it and means that network provides net even if lo is the only interface configured. Signed-off-by: Andrew Gregory --- init.d/network.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.d/network.in b/init.d/network.in index 5a87a841..17237d33 100644 --- a/init.d/network.in +++ b/init.d/network.in @@ -46,7 +46,11 @@ sys_interfaces() local w= rest= i= cmd=$1 while read w rest; do i=${w%%:*} - [ "$i" != "$w" ] || continue + case "$i" in + "$w") continue ;; + lo|lo0) continue ;; + *) ;; + esac if [ "$cmd" = u ]; then ifconfig "$i" | grep -q "[ ]*UP" || continue fi -- cgit v1.2.3