From 4940c3778751f6bbe7b8de1735518880801b5fa4 Mon Sep 17 00:00:00 2001 From: Dustin Navea Date: Tue, 23 Apr 2002 19:34:11 +0000 Subject: [PATCH] Find ntfs drives and supermount cd-roms. Fix finding non-supermount cd-roms mounted at /cdrom. --- tools/wineconf | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/wineconf b/tools/wineconf index 8a5e0badf61..6c211c15116 100755 --- a/tools/wineconf +++ b/tools/wineconf @@ -93,14 +93,21 @@ sub ReadFSTAB { my ($device, $mntpoint, $type, @rest) = split(' ', $_); if ($device !~ m"^/dev/fd") { - if ($type eq "msdos" || $type eq "vfat") { + if ($type eq "ntfs") { + push(@::FatDrives, [$device, $mntpoint, 'win95']); + } + elsif ($type eq "msdos" || $type eq "vfat") { push(@::FatDrives, [$device, $mntpoint, $type]); } elsif ($type eq "iso9660" || - $mntpoint eq "/cdrom" || + ($mntpoint eq "/cdrom" && ! $type eq 'supermount') || ($device eq '/dev/cdrom' && $type eq 'auto') ) { push(@::CdromDrives, [$device, $mntpoint, 'win95']); } + elsif ( ($mntpoint eq '/mnt/cdrom' || $mntpoint eq '/cdrom') + && $type eq 'supermount') { + push(@::CdromDrives, [ '/dev/cdrom', $mntpoint, 'win95']); + } } } if (!@::FatDrives) {