]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/install+setup/libsmooth/netstuff.c
Vorbelegung GrĂ¼n+Rot funktioniert jetzt.
[ipfire-2.x.git] / src / install+setup / libsmooth / netstuff.c
index 1fb95dc659548bc2e724316bcf255c696090cd2d..e742397c18fda53c96ce18ebef2b689a00860cdc 100644 (file)
@@ -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;
 }