diff options
Diffstat (limited to 'modules/luci-mod-admin-mini/luasrc/model')
3 files changed, 7 insertions, 7 deletions
diff --git a/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/dhcp.lua b/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/dhcp.lua index 8841d1ff82..0743ece978 100644 --- a/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/dhcp.lua +++ b/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/dhcp.lua @@ -30,15 +30,15 @@ limit:depends("ignore", "0") function limit.cfgvalue(self, section) local value = Value.cfgvalue(self, section) - + if value then return tonumber(value) + 1 - end + end end function limit.write(self, section, value) value = tonumber(value) - 1 - return Value.write(self, section, value) + return Value.write(self, section, value) end limit.rmempty = true @@ -53,7 +53,7 @@ uci:foreach("dhcp", "dnsmasq", function(section) leasefn = section.leasefile end -) +) local leasefp = leasefn and fs.access(leasefn) and io.lines(leasefn) if leasefp then leases = {} diff --git a/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/passwd.lua b/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/passwd.lua index 8cdb4be9fa..b7b40e25d0 100644 --- a/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/passwd.lua +++ b/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/passwd.lua @@ -19,13 +19,13 @@ end function f.handle(self, state, data) if state == FORM_VALID then local stat = luci.sys.user.setpasswd("root", data.pw1) == 0 - + if stat then f.message = translate("Password successfully changed") else f.errmessage = translate("Unknown Error") end - + data.pw1 = nil data.pw2 = nil end diff --git a/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/wifi.lua b/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/wifi.lua index 799211fef4..a588164375 100644 --- a/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/wifi.lua +++ b/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/wifi.lua @@ -242,7 +242,7 @@ if hwtype == "mac80211" then encr.description = translate( "WPA-Encryption requires wpa_supplicant (for client mode) or hostapd (for AP " .. "and ad-hoc mode) to be installed." - ) + ) else encr.description = translate( "WPA-Encryption requires wpa_supplicant (for client mode) or hostapd (for AP " .. |