- findnicdescription(driver, description);
- sprintf (title, "%s v%s - %s", NAME, VERSION, SLOGAN);
- sprintf(message, ctr[TR_FOUND_NIC], NAME, description);
- newtWinMessage(title, ctr[TR_OK], message);
- }
- }
+ char *driver;
+ fgets(line, STRING_SIZE-1, handle);
+ fclose(handle);
+ line[strlen(line) - 1] = 0;
+ driver = strtok(line, ".");
+ fprintf(flog, "Detected NIC driver: %s\n",driver);
+ if (strlen(driver) > 1) {
+ strcpy(driveroptions, "");
+ findnicdescription(driver, description);
+ sprintf (title, "%s %s - %s", NAME, VERSION, SLOGAN);
+ sprintf(message, ctr[TR_FOUND_NIC], NAME, description);
+ newtWinMessage(title, ctr[TR_OK], message);
+ } else {
+ errorbox(ctr[TR_PROBE_FAILED]);
+ }
+ }
+ }