diff options
author | Luka Perkov <luka@openwrt.org> | 2014-06-27 08:09:03 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-06-28 22:16:49 +0100 |
commit | e616114c0d3886f83706a1b505e1f5e6c0d838b8 (patch) | |
tree | 06f02ee365377aa88fe02c24c1feed873aa506fc /validate | |
parent | bb036b3d7af9d63f50b57bff9ffe5cb9988365ab (diff) | |
download | ubox-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.c | 4 |
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++) |