mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-22 00:42:59 +02:00
Vorbelegung Grün+Rot funktioniert jetzt.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@883 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -345,7 +345,7 @@ int get_knic(int card) //returns "0" for zero cards or error and "1" card is fo
|
||||
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);
|
||||
@@ -359,6 +359,7 @@ int get_knic(int card) //returns "0" for zero cards or error and "1" card is fo
|
||||
strcpy(knics[ card ].description, ctr[TR_UNSET]);
|
||||
ret_value = 0;
|
||||
}
|
||||
freekeyvalues(kv);
|
||||
|
||||
return ret_value;
|
||||
}
|
||||
|
||||
@@ -334,9 +334,15 @@ int drivermenu(void)
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user