diff options
author | 2015-10-17 21:25:29 -0500 | |
---|---|---|
committer | 2015-10-17 21:25:29 -0500 | |
commit | bf37db71ed13ef56209931a1e56ee7daeac1032e (patch) | |
tree | 59777763b4959d87bf033cd2ff525b995993e8b5 | |
parent | Allow users to specify the network config using ipfconfig or iproute2 syntax. (diff) | |
download | livecd-tools-bf37db71ed13ef56209931a1e56ee7daeac1032e.tar.gz livecd-tools-bf37db71ed13ef56209931a1e56ee7daeac1032e.tar.bz2 livecd-tools-bf37db71ed13ef56209931a1e56ee7daeac1032e.zip |
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.
-rwxr-xr-x | net-setup | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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} } |