+2008-01-05 Robert Millan <rmh@aybabtu.com>
+
+ * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
+ discs unconditionaly, since udev and others have options to provide
+ them.
+
2008-01-05 Robert Millan <rmh@aybabtu.com>
* normal/completion.c (iterate_dir): Skip `.' and `..' directories.
{
p = path + 5;
- if (have_devfs ())
+ /* If this is an IDE disk. */
+ if (strncmp ("ide/", p, 4) == 0)
{
- /* If this is an IDE disk. */
- if (strncmp ("ide/", p, 4) == 0)
- {
- p = strstr (p, "part");
- if (p)
- strcpy (p, "disc");
-
- return path;
- }
-
- /* If this is a SCSI disk. */
- if (strncmp ("scsi/", p, 5) == 0)
- {
- p = strstr (p, "part");
- if (p)
- strcpy (p, "disc");
-
- return path;
- }
+ p = strstr (p, "part");
+ if (p)
+ strcpy (p, "disc");
+
+ return path;
+ }
+
+ /* If this is a SCSI disk. */
+ if (strncmp ("scsi/", p, 5) == 0)
+ {
+ p = strstr (p, "part");
+ if (p)
+ strcpy (p, "disc");
+
+ return path;
}
/* If this is a DAC960 disk. */