aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <dev@blino.org>2012-10-23 23:36:50 +0200
committerOlivier Blin <dev@blino.org>2012-10-23 23:36:50 +0200
commit5feb682d2713d027bf24ad64942e3ccddadcade4 (patch)
tree2332474cb94c87c91c3c4dc38bcd5d9b2bf5e3e5
parent939c28ad5d6aee5e9f501e55edf4fe4e8c53cd7e (diff)
downloadinitscripts-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-functions2
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 ()