commit: f42ec82f21f3760b829507344ad0ae761e1d59aa Author: 3PO <r2d2 <AT> freakmail <DOT> de> AuthorDate: Sun Dec 31 21:50:57 2017 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> 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
