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 <andrew.gregory.8@gmail.com>
This commit is contained in:
parent
60d288a877
commit
d711663189
@ -46,7 +46,11 @@ sys_interfaces()
|
|||||||
local w= rest= i= cmd=$1
|
local w= rest= i= cmd=$1
|
||||||
while read w rest; do
|
while read w rest; do
|
||||||
i=${w%%:*}
|
i=${w%%:*}
|
||||||
[ "$i" != "$w" ] || continue
|
case "$i" in
|
||||||
|
"$w") continue ;;
|
||||||
|
lo|lo0) continue ;;
|
||||||
|
*) ;;
|
||||||
|
esac
|
||||||
if [ "$cmd" = u ]; then
|
if [ "$cmd" = u ]; then
|
||||||
ifconfig "$i" | grep -q "[ ]*UP" || continue
|
ifconfig "$i" | grep -q "[ ]*UP" || continue
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user