if not version_match or not self_version or version_match(self_version, "<60.0.1") then DIE("Minimal required version of Updater-ng for Turris repository is 60.0.1!") end if not board then 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 board = "omnia" elseif model:match("^[Tt]urris$") or model:match("[Tt]urris ?1%.?x") then board = "turris1x" else DIE("Unsupported Turris model: " .. tostring(model)) end end -- Script simplifying lists inclusion when older version of updater is used function list_script(list) if features["relative_uri"] then Script(list) else Script((repo_base_uri or "https://repo.turris.cz/hbs") .. "/" .. board .. "/lists/" .. list) end end ---------------------------------------------------------------------------------- if features.request_condition then -- Advanced dependencies guard if board == "omnia" or board == "turris1x" then Install("luci-app-rainbow", { priority = 40 }) end -- Additional protocols Install("luci-app-ahcp", "luci-app-bcp38", { priority = 40 }) Install("luci-proto-relay", { priority = 40 }) if options and options.adblock then Install("luci-app-adblock", { priority = 40 }) end if options and options.sqm then Install("luci-app-sqm", { priority = 40 }) end if options and options.tinyproxy then Install("luci-app-tinyproxy", { priority = 40 }) end if options and options.upnp then Install("luci-app-upnp", { priority = 40 }) end if options and options.printserver then Install("kmod-usb-printer", { priority = 40 }) Install("luci-app-p910nd", { priority = 40 }) end if options and options.statistics then Install("luci-app-statistics", { priority = 40 }) end if options and options.wireguard then Install("luci-app-wireguard", { priority = 40 }) end if options and options.easybird then Install("luci-app-easybird", { priority = 40 }) end end