Skip to content

Commit 8146e05

Browse files
committed
gen-interfaces: Fix bug when generating on boards with mounted Wi-Fi chipsets
These should not appear in a generated factory-config or failure-config.
1 parent 153ceda commit 8146e05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/confd/bin/gen-interfaces

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ filter_iface_ports()
9696
iface_devs=""
9797
for phy in $ifaces; do
9898
found=""
99+
[ -d "/sys/class/net/${phy}/wireless" ] && continue
99100
for port in $ports; do
100-
[ -d "/sys/class/net/${port}/wireless" ] && continue
101101
if [ "$port" = "$phy" ]; then
102102
found=true
103103
break

0 commit comments

Comments
 (0)