Components/Network.py: *fix usb wlan module recognition for new 1.6 oe images.
authoracid-burn <acid-burn@opendreambox.org>
Tue, 23 Feb 2010 20:34:11 +0000 (21:34 +0100)
committeracid-burn <acid-burn@opendreambox.org>
Tue, 23 Feb 2010 20:34:11 +0000 (21:34 +0100)
This fixes #449

lib/python/Components/Network.py

index 4b0213d..29491cb 100755 (executable)
@@ -580,11 +580,11 @@ class Network:
                                self.wlanmodule = 'madwifi'
                if os_path.exists(rt73_dir):
                        rtfiles = listdir(rt73_dir)
                                self.wlanmodule = 'madwifi'
                if os_path.exists(rt73_dir):
                        rtfiles = listdir(rt73_dir)
-                       if len(rtfiles) == 2:
+                       if len(rtfiles) == 2 or len(rtfiles) == 5:
                                self.wlanmodule = 'ralink'
                if os_path.exists(zd1211b_dir):
                        zdfiles = listdir(zd1211b_dir)
                                self.wlanmodule = 'ralink'
                if os_path.exists(zd1211b_dir):
                        zdfiles = listdir(zd1211b_dir)
-                       if len(zdfiles) == 1:
+                       if len(zdfiles) == 1 or len(zdfiles) == 5:
                                self.wlanmodule = 'zydas'
                return self.wlanmodule
        
                                self.wlanmodule = 'zydas'
                return self.wlanmodule