Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etercifs
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etercifs
Commits
a2394d9a
Commit
a2394d9a
authored
Feb 19, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for support spaces in the mount path
parent
cf683295
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
etermount
etercifs/etermount
+3
-2
No files found.
etercifs/etermount
100644 → 100755
View file @
a2394d9a
...
...
@@ -54,6 +54,7 @@ help_text()
[
"
$1
"
==
'--help'
-o
"
$1
"
==
'-h'
]
&&
{
help_text
;
exit
0
;
}
# FIXME: Lav 19.02.10: I think, default mount path is useless
[
"$#"
-ge
1
-a
"$#"
-le
2
]
||
fatal
'Usage: etermount <//server/share> [</path/mountpoint>]'
if
[
"
$2
"
==
''
]
;
then
...
...
@@ -62,9 +63,9 @@ else
SHARE_PATH
=
"
$2
"
fi
create_share_dir
$SHARE_PATH
create_share_dir
"
$SHARE_PATH
"
if
$(
$SUDO
mount
-t
cifs
"
$1
"
$SHARE_PATH
-o
$MOUNT_OPTIONS
&>/dev/null
)
;
then
if
$(
$SUDO
mount
-t
cifs
"
$1
"
"
$SHARE_PATH
"
-o
$MOUNT_OPTIONS
)
;
then
echo
"Info: mount of share
$1
in mountpoint
$SHARE_PATH
has been successfully"
else
fatal
"Warning: error while mount of share
$1
in mountpoint
$SHARE_PATH
!"
...
...
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