Skip to content
Snippets Groups Projects
Verified Commit 013f2e81 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 8f07cfeb
Branches
Tags
1 merge request!123Turris OS 5.0 (HBK)
......@@ -43,7 +43,7 @@ function list_script(list)
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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment