<%- local uci = require("luci.model.uci").cursor() local fs = require "luci.openclash" local conf = uci:get("openclash", "config", "config_path") if not conf then conf = "/etc/openclash/config/config.yaml" end local conf_name = fs.basename(conf) if not conf_name then conf_name = "config.yaml" end local sconf = "/etc/openclash/"..conf_name -%> <%- if fs.isfile(sconf) then -%> <%- else -%> <%- end -%>