They are already supported in config_get_bool function found in OpenWrt
base-package.
Signed-off-by: Luka Perkov <luka@openwrt.org>
{
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++)