if features and features.provides and features.conflicts then -- Advanced dependencies guard -- On Turris 1.x there is not enough space to install some of following packages -- so we are just skipping them. -- Tools if model and not model:match("^[Tt]urris$") then Install("cups", "cups-client", { priority = 40 }) Install("openprinting-cups-filters", "gutenprint-cups", "ghostscript", "ghostscript-fonts-std", "ghostscript-gnu-gs-fonts-other", { priority = 40 }) Install("hplip", { priority = 40 }) end -- Kernel Install("kmod-usb-printer", { priority = 40 }) -- Luci Install("luci-app-p910nd", { priority = 40 }) if model and not model:match("^[Tt]urris$") then Install("luci-app-cups", { priority = 40 }) end local luci_i18n = {["en"] = true} -- we always install English localization for _, lang in pairs(l10n or {}) do luci_i18n[lang] = true end for lang in pairs(luci_i18n) do for _, pkg in pairs({"p910nd"}) do Install("luci-i18n-" .. pkg .. "-" .. lang, { ignore = {"missing"}, priority = 40 }) end end end