Probe eth2 to determine a has_wifi property.
diff --git a/Makefile b/Makefile
index d56c8f3..02ee80b 100644
--- a/Makefile
+++ b/Makefile
@@ -72,6 +72,7 @@
ip addr show br0; \
ip addr show eth0; \
ip addr show eth1; \
+ ip addr show eth2; \
cat /proc/cpuinfo
configs/nmap.%.tmp:
diff --git a/configs/core.py b/configs/core.py
index 2dc6b72..251c99a 100644
--- a/configs/core.py
+++ b/configs/core.py
@@ -65,6 +65,7 @@
'is_nfsroot',
'has_ether',
'has_moca',
+ 'has_wifi',
)
@@ -84,6 +85,8 @@
if not h:
h = Host(**kwargs)
self.append(h)
+ if not h.name:
+ h.name = h.ether or h.ip or h.ip6
return h
def __str__(self):
diff --git a/parse-probe-data b/parse-probe-data
index 512fdb3..d3ec307 100755
--- a/parse-probe-data
+++ b/parse-probe-data
@@ -58,6 +58,8 @@
elements.append('has_ether=1')
if re.search(r'eth1:.*LOWER_UP', data):
elements.append('has_moca=1')
+ if re.search(r'eth2:.*LOWER_UP', data):
+ elements.append('has_wifi=1')
g = re.search(r'system type\s*:\s*(\S+)', data)
if g: