Skip to content
Snippets Groups Projects
Verified Commit 608f527e authored by Karel Koci's avatar Karel Koci :metal:
Browse files

lists: fix model detection

Upstream changed names of variables in /etc/os-release to correspond to
correct project name. It is no longer Lede but once again OpenWRT.
parent 9b880c3d
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ if not version_match or not self_version or version_match(self_version, "<60.0.1
end
if not board then
local model = model or os_release["LEDE_DEVICE_PRODUCT"]
local model = model or os_release["OPENWRT_DEVICE_PRODUCT"] or os_release["LEDE_DEVICE_PRODUCT"]
if model:match("[Mm]ox") then
board = "mox"
elseif model:match("[Oo]mnia") then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment