1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Try to fix modemmanager signal

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-02-21 17:09:22 +01:00
parent 8e5d9b5923
commit 51e22f0b40
2 changed files with 19 additions and 13 deletions

View file

@ -1020,16 +1020,18 @@ function interfaces_status()
connectivity = "ERROR"
end
local proto = section['proto']
if proto == "qmi" then
local device = section['device']
signal = sys.exec("omr-qmi " .. device)
elseif proto == "3g" then
local device = section['device']
signal = sys.exec("omr-3g " .. device)
elseif proto == "modemmanager" then
local device = section['device']
signal = sys.exec("omr-modemmanager " .. device)
if ifname ~= "" and ifname ~= nil then
local proto = section['proto']
if proto == "qmi" then
local device = section['device']
signal = sys.exec("omr-qmi " .. device)
elseif proto == "3g" then
local device = section['device']
signal = sys.exec("omr-3g " .. device)
elseif proto == "modemmanager" then
local device = section['device']
signal = sys.exec("omr-modemmanager " .. ifname)
end
end
local latency = ""