|
@@ -35,6 +35,20 @@ VENDORS = {
|
|
'zyxel' : 'Zyxel'
|
|
'zyxel' : 'Zyxel'
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+BLACKLIST_MODELS = [
|
|
|
|
+ 'cpe510-v1.0',
|
|
|
|
+ 'cpe510-v1.1',
|
|
|
|
+ 'cpe520-v1.1',
|
|
|
|
+ 'bullet-m5',
|
|
|
|
+ 'nanostation-m5',
|
|
|
|
+ 'nanostation-m5-xw',
|
|
|
|
+ 'nanostation-loco-m5',
|
|
|
|
+ 'nanostation-loco-m5-xw',
|
|
|
|
+ 'rocket-m5',
|
|
|
|
+ 'rocket-m5-ti',
|
|
|
|
+ 'rocket-m5-xw'
|
|
|
|
+]
|
|
|
|
+
|
|
def longestPrefixKeyMatch(string, dictionary):
|
|
def longestPrefixKeyMatch(string, dictionary):
|
|
maxlen = 0
|
|
maxlen = 0
|
|
retval = None
|
|
retval = None
|
|
@@ -67,6 +81,9 @@ def findFiles(directory):
|
|
if n:
|
|
if n:
|
|
model = n.group(1)
|
|
model = n.group(1)
|
|
|
|
|
|
|
|
+ if model in BLACKLIST_MODELS:
|
|
|
|
+ continue
|
|
|
|
+
|
|
has_factory = False
|
|
has_factory = False
|
|
if os.path.isfile(factory + PREFIX + "-" + imageversion + "-" + firmware + "." + imagetype):
|
|
if os.path.isfile(factory + PREFIX + "-" + imageversion + "-" + firmware + "." + imagetype):
|
|
has_factory = True
|
|
has_factory = True
|