В immortalWRT этот пакет работает и в luci появляется менюшка, но в свежих версиях Openwrt используются другие вызовы для библиотек (или что-то типа того) и они отказались от luci-compat. Чтобы у вас появился пункт меню Syncthing
в Services
(не в NAS), после установки luci-app-syncthing
из репозитория ImmortalWRT замените один файл:
Очистите файл:
> /usr/lib/lua/luci/controller/syncthing.lua
nano /usr/lib/lua/luci/controller/syncthing.lua
и вставьте туда
module("luci.controller.syncthing", package.seeall)
function index()
if not nixio.fs.access("/etc/config/syncthing") then
return
end
local page = entry({"admin", "services", "syncthing"}, cbi("syncthing"), _("Syncthing"), 60)
page.dependent = true
page.acl_depends = { "luci-app-syncthing" }
entry({"admin", "services", "syncthing", "status"}, call("act_status")).leaf = true
end
function act_status()
local e = {}
e.running = luci.sys.call("pgrep syncthing >/dev/null") == 0
luci.http.prepare_content("application/json")
luci.http.write_json(e)
end