1
0
mirror of https://github.com/BELABOX/belaUI.git synced 2026-07-04 14:46:41 +00:00

Allow use of the wlanX interfaces

This commit is contained in:
rationalsa
2021-02-10 23:08:56 +00:00
parent daed611308
commit 297fd18ac7
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -40,12 +40,10 @@ def in_array(array, search)
end
def get_modems
ignore = "wlan"
modems = []
addrs = `ip route show`
addrs.each_line do |line|
next if line.match(ignore)
line = line.split(" ")
if (srci = in_array(line, 'src')) >= 0
ip = line[srci+1]
+1 -1
View File
@@ -14,7 +14,7 @@ def gen_ip_file(filename)
addrs = `ip route show`
addrs.each_line do |line|
next if line.match('wlan') or line.match('linkdown')
next if line.match('linkdown')
line = line.split(" ")
if (srci = in_array(line, 'src')) >= 0
file.puts(line[srci+1])