X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-ddns%2Fluasrc%2Fcontroller%2Fddns.lua;h=6adbbb0cae7cdb70abd41a1232754d69b5361fce;hp=f98913655cb17ac11ca114cb93506335b104a10c;hb=70ded13045e6b882859eeb0acb928eb8cacefd28;hpb=5c419acf926b7332976c6a5c1586d2badf9664ae diff --git a/applications/luci-ddns/luasrc/controller/ddns.lua b/applications/luci-ddns/luasrc/controller/ddns.lua index f98913655..6adbbb0ca 100644 --- a/applications/luci-ddns/luasrc/controller/ddns.lua +++ b/applications/luci-ddns/luasrc/controller/ddns.lua @@ -17,7 +17,7 @@ module("luci.controller.ddns", package.seeall) function index() require("luci.i18n") luci.i18n.loadc("ddns") - if not luci.fs.isfile("/etc/config/ddns") then + if not luci.fs.access("/etc/config/ddns") then return end @@ -26,7 +26,7 @@ function index() page.dependent = true - local page = entry({"mini", "network", "ddns"}, cbi("ddns/ddnsmini"), luci.i18n.translate("ddns"), 60) + local page = entry({"mini", "network", "ddns"}, cbi("ddns/ddnsmini", {autoapply=true}), luci.i18n.translate("ddns"), 60) page.i18n = "ddns" page.dependent = true end \ No newline at end of file