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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user