summaryrefslogtreecommitdiff
path: root/validate
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2014-06-27 08:09:03 +0000
committerJohn Crispin <blogic@openwrt.org>2014-06-28 22:16:49 +0100
commite616114c0d3886f83706a1b505e1f5e6c0d838b8 (patch)
tree06f02ee365377aa88fe02c24c1feed873aa506fc /validate
parentbb036b3d7af9d63f50b57bff9ffe5cb9988365ab (diff)
downloadubox-e616114c0d3886f83706a1b505e1f5e6c0d838b8.tar.gz
validate: add valid bool types enabled/disabled
They are already supported in config_get_bool function found in OpenWrt base-package. Signed-off-by: Luka Perkov <luka@openwrt.org>
Diffstat (limited to 'validate')
-rw-r--r--validate/validate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/validate/validate.c b/validate/validate.c
index f550e76..5bc3bc4 100644
--- a/validate/validate.c
+++ b/validate/validate.c
@@ -330,8 +330,8 @@ dt_type_bool(struct dt_state *s, int nargs)
{
int i;
const char *values[] = {
- "0", "off", "false", "no",
- "1", "on", "true", "yes"
+ "0", "off", "false", "no", "disabled",
+ "1", "on", "true", "yes", "enabled"
};
for (i = 0; i < sizeof(values) / sizeof(values[0]); i++)