diff options
author | Olivier Blin <dev@blino.org> | 2012-10-23 23:36:50 +0200 |
---|---|---|
committer | Olivier Blin <dev@blino.org> | 2012-10-23 23:36:50 +0200 |
commit | 5feb682d2713d027bf24ad64942e3ccddadcade4 (patch) | |
tree | 2332474cb94c87c91c3c4dc38bcd5d9b2bf5e3e5 | |
parent | 939c28ad5d6aee5e9f501e55edf4fe4e8c53cd7e (diff) | |
download | initscripts-5feb682d2713d027bf24ad64942e3ccddadcade4.tar initscripts-5feb682d2713d027bf24ad64942e3ccddadcade4.tar.gz initscripts-5feb682d2713d027bf24ad64942e3ccddadcade4.tar.bz2 initscripts-5feb682d2713d027bf24ad64942e3ccddadcade4.tar.xz initscripts-5feb682d2713d027bf24ad64942e3ccddadcade4.zip |
network-functions: fix detecting wireless devices in sysfs
The wireless directory has been removed in kernel commit
35b2a113cb0298d4f9a1263338b456094a414.
Check the phy80211 symlink instead.
-rw-r--r-- | sysconfig/network-scripts/network-functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index cb22040a..fc61c2b9 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -409,7 +409,7 @@ add_default_route () is_wireless_device () { - [ -d "/sys/class/net/$1/wireless" ] + [ -d "/sys/class/net/$1/phy80211" ] } install_bonding_driver () |