Find ntfs drives and supermount cd-roms.
Fix finding non-supermount cd-roms mounted at /cdrom.
This commit is contained in:
parent
e052196134
commit
4940c37787
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue