From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0848D1381F1 for ; Fri, 5 Jan 2018 20:59:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1A97BE088C; Fri, 5 Jan 2018 20:59:25 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EDD74E088C for ; Fri, 5 Jan 2018 20:59:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 759CA335C07 for ; Fri, 5 Jan 2018 20:59:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 130061D for ; Fri, 5 Jan 2018 20:59:20 +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: <1515185793.f42ec82f21f3760b829507344ad0ae761e1d59aa.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: init.d/ X-VCS-Repository: proj/openrc X-VCS-Files: init.d/net-online.in X-VCS-Directories: init.d/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: f42ec82f21f3760b829507344ad0ae761e1d59aa X-VCS-Branch: master Date: Fri, 5 Jan 2018 20:59:20 +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: 46d4573e-705d-479d-956e-66c0342eab95 X-Archives-Hash: 34c31f916433199ae977887bf796742b commit: f42ec82f21f3760b829507344ad0ae761e1d59aa Author: 3PO freakmail de> AuthorDate: Sun Dec 31 21:50:57 2017 +0000 Commit: William Hubbs gentoo org> CommitDate: Fri Jan 5 20:56:33 2018 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=f42ec82f net-online: only process symbolic links in /sys/class/net The /sys/class/net directory contains files which are not symlinks if the system has bonded devices [1]. We should ignore these files. This fixes #196. [1] https://elkano.org/blog/manage-interface-bondings-sysfs-interface/ init.d/net-online.in | 1 + 1 file changed, 1 insertion(+) diff --git a/init.d/net-online.in b/init.d/net-online.in index 1175f29c..484fe87d 100644 --- a/init.d/net-online.in +++ b/init.d/net-online.in @@ -23,6 +23,7 @@ get_interfaces() { local ifname iftype for ifname in /sys/class/net/*; do + [ -h "${ifname}" ] && continue read iftype < ${ifname}/type [ "$iftype" = "1" ] && printf "%s " ${ifname##*/} done