diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2013-08-18 23:47:04 -0400 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2013-12-06 13:24:58 -0600 |
commit | d7116631894badd88f334b4ef5cd6e3ee585b801 (patch) | |
tree | df3de0cc582b905ebaa2731dc0aa8d5acad84838 /init.d | |
parent | 60d288a877a3671ea5b3483ed7c4612ec897b99a (diff) |
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>
Diffstat (limited to 'init.d')
-rw-r--r-- | init.d/network.in | 6 |
1 files changed, 5 insertions, 1 deletions
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 |