Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
9bd682d8
Commit
9bd682d8
authored
Jun 02, 2000
by
Ove Kaaven
Committed by
Alexandre Julliard
Jun 02, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add "Unix drives" /tmp and ${HOME}, and Device and Filesystem
statements, to autogenerated wine.conf.
parent
e2f4aefb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
4 deletions
+24
-4
wineconf
tools/wineconf
+24
-4
No files found.
tools/wineconf
View file @
9bd682d8
...
...
@@ -78,10 +78,12 @@ sub ReadFSTAB {
my
(
$device
,
$mntpoint
,
$type
,
@rest
)
=
split
(
' '
,
$_
);
if
(
$device
!~
m
"^/dev/fd"
)
{
if
(
$type
eq
"msdos"
||
$type
eq
"vfat"
)
{
push
(
@::FatDrives
,
[
$device
,
$mntpoint
]);
push
(
@::FatDrives
,
[
$device
,
$mntpoint
,
$type
]);
}
elsif
(
$type
eq
"iso9660"
||
(
$device
eq
'/dev/cdrom'
&&
$type
eq
'auto'
)
)
{
push
(
@::CdromDrives
,
[
$device
,
$mntpoint
]);
elsif
(
$type
eq
"iso9660"
||
$mntpoint
eq
"/cdrom"
||
(
$device
eq
'/dev/cdrom'
&&
$type
eq
'auto'
)
)
{
push
(
@::CdromDrives
,
[
$device
,
$mntpoint
,
'win95'
]);
}
}
}
...
...
@@ -91,14 +93,18 @@ sub ReadFSTAB {
warn
"cannot help you (yet)\n"
;
exit
(
1
);
}
push
(
@::UnixDrives
,
[
''
,
'/tmp'
,
'hd'
]);
push
(
@::UnixDrives
,
[
''
,
'${HOME}'
,
'network'
]);
my
$MagicDrive
=
'C'
;
@::FatDrives
=
sort
byDriveOrder
@::FatDrives
;
@::CdromDrives
=
sort
byCdOrder
@::CdromDrives
;
foreach
my
$FatDrive
(
@::FatDrives
)
{
print
"[Drive $MagicDrive]\n"
;
my
$MntPoint
=
$FatDrive
->
[
1
];
my
$FileSys
=
$FatDrive
->
[
2
];
print
"Path=$MntPoint\n"
;
print
"Type=hd\n"
;
print
"Filesystem=$FileSys\n"
;
print
"\n"
;
&
RegisterDrive
(
$MagicDrive
,
$FatDrive
);
if
(
!&
IsMounted
(
$FatDrive
->
[
0
]))
{
...
...
@@ -109,13 +115,27 @@ sub ReadFSTAB {
}
foreach
my
$CdromDrive
(
@::CdromDrives
)
{
print
"[Drive $MagicDrive]\n"
;
my
$Device
=
$CdromDrive
->
[
0
];
my
$MntPoint
=
$CdromDrive
->
[
1
];
my
$FileSys
=
$CdromDrive
->
[
2
];
print
"Path=$MntPoint\n"
;
print
"Type=cdrom\n"
;
print
"Device=$Device\n"
;
print
"Filesystem=$FileSys\n"
;
print
"\n"
;
&
RegisterDrive
(
$MagicDrive
,
$CdromDrive
);
$MagicDrive
++
;
}
foreach
my
$UnixDrive
(
@::UnixDrives
)
{
print
"[Drive $MagicDrive]\n"
;
my
$MntPoint
=
$UnixDrive
->
[
1
];
my
$Type
=
$UnixDrive
->
[
2
];
print
"Path=$MntPoint\n"
;
print
"Type=$Type\n"
;
print
"Filesystem=win95\n"
;
print
"\n"
;
$MagicDrive
++
;
}
}
sub
FindWindowsDir
{
...
...
@@ -199,7 +219,7 @@ sub IsMounted {
}
sub
RegisterDrive
{
my
(
$DOSdrive
,
$Drive
)
=
@_
;
my
(
$DOSdrive
,
$Drive
,
$Type
)
=
@_
;
$::DOS2Unix
{
$DOSdrive
}
=
$Drive
;
$::Device2DOS
{
$Drive
->
[
0
]}
=
$DOSdrive
;
$::MntPoint2DOS
{
$Drive
->
[
1
]}
=
$DOSdrive
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment