From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B5379138247 for ; Fri, 6 Dec 2013 19:27:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 78FB3E0998; Fri, 6 Dec 2013 19:27:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 12869E0998 for ; Fri, 6 Dec 2013 19:27:13 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2735F33F2D1 for ; Fri, 6 Dec 2013 19:27:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id C58A5D0878 for ; Fri, 6 Dec 2013 19:27:11 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1386357898.d7116631894badd88f334b4ef5cd6e3ee585b801.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: init.d/ X-VCS-Repository: proj/openrc X-VCS-Files: init.d/network.in X-VCS-Directories: init.d/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: d7116631894badd88f334b4ef5cd6e3ee585b801 X-VCS-Branch: master Date: Fri, 6 Dec 2013 19:27:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 35855f35-bc82-4e31-9e9d-bf7092506ecb X-Archives-Hash: 40b47805e83b5d52d3f63439ebd52431 commit: d7116631894badd88f334b4ef5cd6e3ee585b801 Author: Andrew Gregory gmail com> AuthorDate: Mon Aug 19 03:47:04 2013 +0000 Commit: William Hubbs gentoo org> CommitDate: Fri Dec 6 19:24:58 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=d7116631 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 gmail.com> --- 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 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