Some auto-configuration added to WTP.

FossilOrigin-Name: 713e47f5aebc856271a50620b23ca95262511da28c4ae2c0fee9696b28caa1ff
This commit is contained in:
7u83@mail.ru
2016-03-05 13:12:49 +00:00
parent f1888d2503
commit dfbb71cb29
11 changed files with 74 additions and 171 deletions

View File

@ -43,15 +43,12 @@ static struct uci_section * get_anon_section(struct uci_package * pkg, const ch
static void set_dbg_opt(struct uci_context *ctx,struct uci_section * section,int opt,const char * optstr)
{
printf("Setting debug opt: %s %d - ",optstr, opt);
const char *str = uci_lookup_option_string(ctx,section,optstr);
if (!str){
printf("no\n");
return;
}
printf("%s\n",str);
if ((strcmp(str,"1")==0) || (strcmp(str,"true")==0))
//conf_dbg_level |= opt;
cw_dbg_set_level(opt,1);