From: Luka Perkov Date: Fri, 27 Jun 2014 08:09:03 +0000 (+0000) Subject: validate: add valid bool types enabled/disabled X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e616114c0d3886f83706a1b505e1f5e6c0d838b8;p=oweals%2Fubox.git 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 --- 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++)