strcpy(temp, ""); findkey(kv, searchstr, temp);
if (strlen(temp)) {
strcpy(knics[ card ].macaddr, temp);
- strcpy(knics[ card ].colour, "GREEN");
+ strcpy(knics[ card ].colour, ucolourcard[card]);
sprintf(searchstr, "%s_DESCRIPTION", ucolourcard[card]);
findkey(kv, searchstr, temp);
strcpy(knics[ card ].description, ctr[TR_UNSET]);
ret_value = 0;
}
+ freekeyvalues(kv);
return ret_value;
}
return 0;
}
- findkey(kv, "CONFIG_TYPE", temp);
- configtype = atol(temp);
-
+ if (findkey(kv, "CONFIG_TYPE", temp))
+ configtype = atol(temp);
+ else {
+ fprintf(flog,"setting CONFIG_TYPE = %s\n",temp);
+ configtype = atol(temp);
+ replacekeyvalue(kv, "CONFIG_TYPE", temp);
+ writekeyvalues(kv, CONFIG_ROOT "/ethernet/settings");
+ }
+
strcpy(message, ctr[TR_CONFIGURE_NETWORK_DRIVERS]);
kcount = 0;