Commit 4940c377 authored by Dustin Navea's avatar Dustin Navea Committed by Alexandre Julliard

Find ntfs drives and supermount cd-roms.

Fix finding non-supermount cd-roms mounted at /cdrom.
parent e0521961
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment