validate: add valid bool types enabled/disabled
authorLuka Perkov <luka@openwrt.org>
Fri, 27 Jun 2014 08:09:03 +0000 (08:09 +0000)
committerJohn Crispin <blogic@openwrt.org>
Sat, 28 Jun 2014 21:16:49 +0000 (22:16 +0100)
They are already supported in config_get_bool function found in OpenWrt
base-package.

Signed-off-by: Luka Perkov <luka@openwrt.org>
validate/validate.c

index f550e760bf5695eaec73dee0b24b8bc51bcdaeea..5bc3bc4e8c31e540e6d8c487d7bfe931c9172647 100644 (file)
@@ -330,8 +330,8 @@ dt_type_bool(struct dt_state *s, int nargs)
 {
        int i;
        const char *values[] = {
 {
        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++)
        };
 
        for (i = 0; i < sizeof(values) / sizeof(values[0]); i++)