From bf37db71ed13ef56209931a1e56ee7daeac1032e Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sat, 17 Oct 2015 21:25:29 -0500 Subject: 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} } -- cgit v1.2.3-65-gdbad