summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2013-08-18 23:47:04 -0400
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-12-06 13:24:58 -0600
commitd7116631894badd88f334b4ef5cd6e3ee585b801 (patch)
treedf3de0cc582b905ebaa2731dc0aa8d5acad84838
parent60d288a877a3671ea5b3483ed7c4612ec897b99a (diff)
downloadopenrc-d7116631894badd88f334b4ef5cd6e3ee585b801.tar.gz
openrc-d7116631894badd88f334b4ef5cd6e3ee585b801.tar.bz2
openrc-d7116631894badd88f334b4ef5cd6e3ee585b801.tar.xz
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>
-rw-r--r--init.d/network.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/init.d/network.in b/init.d/network.in
index 5a87a84..17237d3 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