summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib/config
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-09-19 15:36:30 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-09-19 15:36:30 +0000
commit9c407b3b078189580e4be40d467898c9905a9ec5 (patch)
tree88237047c3194d711f9a6cf09c78d6bf493fb9b1 /package/base-files/files/lib/config
parent4dcc9d335a6774282156f6f1cd6ee93876c55a9c (diff)
sync awk implementation of config_get_bool with the shell variant
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8841 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/lib/config')
-rw-r--r--package/base-files/files/lib/config/uci.awk4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/lib/config/uci.awk b/package/base-files/files/lib/config/uci.awk
index e3f946731..5972ad23a 100644
--- a/package/base-files/files/lib/config/uci.awk
+++ b/package/base-files/files/lib/config/uci.awk
@@ -38,8 +38,8 @@ function config_get(package, option) {
# parameters: 3
function config_get_bool(package, option, default, var) {
var = config_get(package, option);
- if ((var == "enabled") || (var == "1") || (var == "on")) return 1
- if ((var == "disabled") || (var == "0") || (var == "off")) return 1
+ if ((var == "enabled") || (var == "true") || (var == "1") || (var == "on")) return 1
+ if ((var == "disabled") || (var == "false") || (var == "0") || (var == "off")) return 1
return (var && var != "0" ? 1 : 0)
}