From 5feb682d2713d027bf24ad64942e3ccddadcade4 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 23 Oct 2012 23:36:50 +0200 Subject: network-functions: fix detecting wireless devices in sysfs The wireless directory has been removed in kernel commit 35b2a113cb0298d4f9a1263338b456094a414. Check the phy80211 symlink instead. --- sysconfig/network-scripts/network-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 () -- cgit v1.2.1