Find ntfs drives and supermount cd-roms.

Fix finding non-supermount cd-roms mounted at /cdrom.
This commit is contained in:
Dustin Navea 2002-04-23 19:34:11 +00:00 committed by Alexandre Julliard
parent e052196134
commit 4940c37787
1 changed files with 9 additions and 2 deletions

View File

@ -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) {