summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--libs/core/luasrc/model/uci.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/core/luasrc/model/uci.lua b/libs/core/luasrc/model/uci.lua
index 270877677f..e42856bd50 100644
--- a/libs/core/luasrc/model/uci.lua
+++ b/libs/core/luasrc/model/uci.lua
@@ -184,7 +184,8 @@ function Cursor.get_first(self, conf, stype, opt, def)
if type(def) == "number" then
val = tonumber(val)
elseif type(def) == "boolean" then
- val = (val == "1" or val == "true" or val == "enabled")
+ val = (val == "1" or val == "true" or
+ val == "yes" or val == "on")
end
if val ~= nil then