diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-01-08 23:00:56 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-01-08 23:00:56 +0000 |
commit | 4817d66af0feebe6cc6604441195114fdf05e0d5 (patch) | |
tree | 4c5cd46d665b0df34d455fe58794392cc2adcc62 | |
parent | f9d435aa85ce984bdd0736a306ad52deee7cf057 (diff) | |
download | drakx-4817d66af0feebe6cc6604441195114fdf05e0d5.tar drakx-4817d66af0feebe6cc6604441195114fdf05e0d5.tar.gz drakx-4817d66af0feebe6cc6604441195114fdf05e0d5.tar.bz2 drakx-4817d66af0feebe6cc6604441195114fdf05e0d5.tar.xz drakx-4817d66af0feebe6cc6604441195114fdf05e0d5.zip |
fix naming of multiple SCSI devices, thanks to Franco Silvestro
-rw-r--r-- | mdk-stage1/probing.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c index 6e95dc143..7f3607c3d 100644 --- a/mdk-stage1/probing.c +++ b/mdk-stage1/probing.c @@ -209,6 +209,9 @@ static void find_media(void) if (fd != -1) { enum { SCSI_TOP, SCSI_HOST, SCSI_VENDOR, SCSI_TYPE } state = SCSI_TOP; char * start, * chptr, * next, * end; + char scsi_disk_count = 'a'; + char scsi_cdrom_count = '0'; + char scsi_tape_count = '0'; int i = read(fd, &buf, sizeof(buf)); if (i < 1) { @@ -225,9 +228,6 @@ static void find_media(void) while (*start) { char tmp_model[50]; char tmp_name[10]; - char scsi_disk_count = 'a'; - char scsi_cdrom_count = '0'; - char scsi_tape_count = '0'; chptr = start; while (*chptr != '\n') chptr++; |