From e616114c0d3886f83706a1b505e1f5e6c0d838b8 Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Fri, 27 Jun 2014 08:09:03 +0000 Subject: [PATCH] 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 --- validate/validate.c | 4 ++-- 1 file 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++) -- 2.25.1