[PATCH FINALLY FIXED] tools/wineconf

Speeddymon speeddymon at yahoo.com
Thu Apr 25 15:46:56 CDT 2002


this works perfectly on my system too

added check for ntfs drives (in case it is drive c)
NOTE: if you have read/write on for NTFS (in your
kernel) i would not recommend using that as your c
drive.  thats why the wineinstall script says you
should probably check the ~/.wine/config file anyways

added check for cdroms mounted at /cdrom to be
non-supermount (it got broken when i added the check
for supermount cdroms)

added supermount cdrom checking

NOTE: if you have more than 1 cdrom, make sure you
change the "Device" = line in ~/.wine.config for 1 of
the cdroms as the script says both cdroms are
/dev/cdrom





__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/
-------------- next part --------------
Name: tools_wineconf-dnavea-patch.diff
ModifiedFiles: tools/wineconf
ChangeLog: Add check for ntfs drives (wouldn't recommend writing to them 
	     if you have it enabled tho), fixed check for non-supermount 
	     cdroms mounted at /cdrom (only got broken when I added in 
	     supermount checking), added supermount cdrom checking
===============================================================================
--- tools/wineconf	Sat Mar  9 18:24:22 2002
+++ /tmp/wineconf	Tue Apr 23 18:50:41 2002
@@ -93,13 +93,20 @@
 
 	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']);
 	    }
 	}
     }


More information about the wine-devel mailing list