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 1E58013888F for ; Sun, 18 Oct 2015 02:26:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C6070E0818; Sun, 18 Oct 2015 02:26:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 73226E0818 for ; Sun, 18 Oct 2015 02:26:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 23DD0340686 for ; Sun, 18 Oct 2015 02:26:12 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B816C1222 for ; Sun, 18 Oct 2015 02:26:07 +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: <1445135129.bf37db71ed13ef56209931a1e56ee7daeac1032e.williamh@gentoo> Subject: [gentoo-commits] proj/livecd-tools:master commit in: / X-VCS-Repository: proj/livecd-tools X-VCS-Files: net-setup X-VCS-Directories: / X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: bf37db71ed13ef56209931a1e56ee7daeac1032e X-VCS-Branch: master Date: Sun, 18 Oct 2015 02:26:07 +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: 019c541e-fe00-45b8-a738-e94f4ea4a34a X-Archives-Hash: 21476c3456e6fe457eb9ab5dfa774725 commit: bf37db71ed13ef56209931a1e56ee7daeac1032e Author: William Hubbs gmail com> AuthorDate: Sun Oct 18 02:25:29 2015 +0000 Commit: William Hubbs gentoo org> CommitDate: Sun Oct 18 02:25:29 2015 +0000 URL: https://gitweb.gentoo.org/proj/livecd-tools.git/commit/?id=bf37db71 net-setup: read the bus name from the subsystem symbolic link The /sys/class/net/${device}/bus path doesn't appear to be valid, so moving to the new link. net-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net-setup b/net-setup index 088d803..78625f7 100755 --- a/net-setup +++ b/net-setup @@ -6,7 +6,7 @@ get_ifbus() { # Example: ../../../bus/pci (wanted: pci) # Example: ../../../../bus/pci (wanted: pci) # Example: ../../../../../../bus/usb (wanted: usb) - local if_bus=$(readlink /sys/class/net/${iface}/device/bus) + local if_bus=$(readlink /sys/class/net/${iface}/device/subsystem) basename ${if_bus} }