Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE-old
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
Vladislav
PortWINE-old
Commits
a9db46eb
Commit
a9db46eb
authored
Jul 30, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Boria138-fix-drives-remove' into devel
parents
337d8c58
830a6f1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
functions_helper
data_from_portwine/scripts/functions_helper
+2
-7
No files found.
data_from_portwine/scripts/functions_helper
View file @
a9db46eb
...
...
@@ -1269,13 +1269,7 @@ check_dirs_and_files_in_pfx () {
DRIVES
=(
d e f g i j k l m n o p q r t u v w x y
)
DEF_MOUNT_DIRS
=(
'/media'
'/mnt'
'/run/media'
)
MOUNT_DIRS
=(
$(
find
"
${
DEF_MOUNT_DIRS
[@]
}
"
-maxdepth
1
-mindepth
1
-type
d 2>/dev/null |
sort
-u
)
)
rm
-f
"
${
WINEPREFIX
}
/dosdevices/com"
*
rm
-f
"
${
WINEPREFIX
}
/dosdevices/"
*
::
for
drive
in
"
${
DRIVES
[@]
}
"
;
do
rm
-f
"
${
WINEPREFIX
}
/dosdevices/
${
drive
}
:"
done
find
-L
"
$WINEPREFIX
/dosdevices"
-maxdepth
1
-type
l
-exec
rm
-rf
{}
\;
2>/dev/null
;
for
drive_dir
in
"
${
MOUNT_DIRS
[@]
}
"
;
do
if
mountpoint
-q
"
$drive_dir
"
;
then
...
...
@@ -1290,6 +1284,7 @@ check_dirs_and_files_in_pfx () {
if
[[
$(
cat
"/sys/class/block/
$mount_name
/removable"
)
!=
"1"
]]
2>/dev/null
;
then
if
[[
!
$(
echo
"
$mount_point
"
|
grep
"mmc"
)
]]
2>/dev/null
;
then
ln
-sf
"
$drive_dir
"
"
$drive_path
"
print_info
"Mounted
${
drive_dir
}
to
${
drive_path
}
"
break
else
((
drive_num++
))
...
...
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