ctr[TR_PULLING_NETWORK_UP]);
}
}
-
+ create_udev();
return 1;
}
}
strcpy(temp, "0"); findkey(kv, "CONFIG_TYPE", temp); configtype = atol(temp);
- if (configtype < 0 || configtype > 7) configtype = 0;
+ if (configtype < 1 || configtype > 4) configtype = 0;
if (HAS_BLUE)
{
strcpy(networkrestart, ctr[TR_RESTART_REQUIRED]);
strcpy(temp, ""); findkey(kv, "CONFIG_TYPE", temp); x = atol(temp);
- if (x < 0 || x > 7) x = 0;
+ if (x < 1 || x > 4) x = 0;
/* Format heading bit. */
snprintf(message, 1000, ctr[TR_CURRENT_CONFIG], configtypenames[x],
networkrestart);
strcpy(knics[_GREEN_CARD_].colour, "GREEN");
findkey(kv, "GREEN_DESCRIPTION", temp);
strcpy(knics[_GREEN_CARD_].description, temp);
+ findkey(kv, "GREEN_DRIVER", temp);
+ strcpy(knics[_GREEN_CARD_].driver, temp);
kcount++;
} else {
strcpy(knics[_GREEN_CARD_].description, ctr[TR_UNSET]);
strcpy(knics[_RED_CARD_].colour, "RED");
findkey(kv, "RED_DESCRIPTION", temp);
strcpy(knics[_RED_CARD_].description, temp);
+ findkey(kv, "RED_DRIVER", temp);
+ strcpy(knics[_RED_CARD_].driver, temp);
kcount++;
} else {
strcpy(knics[_RED_CARD_].description, ctr[TR_UNSET]);
strcpy(knics[_ORANGE_CARD_].colour, "ORANGE");
findkey(kv, "ORANGE_DESCRIPTION", temp );
strcpy(knics[_ORANGE_CARD_].description, temp );
+ findkey(kv, "ORANGE_DRIVER", temp);
+ strcpy(knics[_ORANGE_CARD_].driver, temp);
kcount++;
} else {
strcpy(knics[_ORANGE_CARD_].description, ctr[TR_UNSET]);
strcpy(knics[_BLUE_CARD_].colour, "BLUE");
findkey(kv, "BLUE_DESCRIPTION", temp );
strcpy(knics[_BLUE_CARD_].description, temp);
+ findkey(kv, "BLUE_DRIVER", temp);
+ strcpy(knics[_BLUE_CARD_].driver, temp);
kcount++;
} else {
strcpy(knics[_BLUE_CARD_].description, ctr[TR_UNSET]);
return 0;
}
- strcpy(temp, "0"); findkey(kv, "CONFIG_TYPE", temp);
+/* strcpy(temp, "0"); findkey(kv, "CONFIG_TYPE", temp);
configtype = atol(temp);
if (RED_IS_NOT_ETH)
errorbox(ctr[TR_DNS_GATEWAY_WITH_GREEN]);
return 0;
}
-
+*/
entries[DNS1].text = ctr[TR_PRIMARY_DNS];
strcpy(temp, ""); findkey(kv, "DNS1", temp);
values[DNS1] = strdup(temp);