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
391aadd2
Commit
391aadd2
authored
Apr 15, 2009
by
Konstantin Baev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add etermount --help and remove not necessary messages
parent
28b4339d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
etermount
etercifs/etermount
+22
-1
No files found.
etercifs/etermount
View file @
391aadd2
...
@@ -33,6 +33,27 @@ create_share_dir()
...
@@ -33,6 +33,27 @@ create_share_dir()
fi
fi
}
}
help_text
()
{
echo
"The utility etermount performs mount network share on a protocol cifs"
echo
"with pre-set parameters, which determined in MOUNT_OPTIONS variable"
echo
"in the config file /etc/etercifs.conf"
echo
"(current value of MOUNT_OPTIONS is '
$MOUNT_OPTIONS
')"
echo
echo
"To mount the resource //server/share to the mountpoint /path/mountpoint"
echo
"need to execute the command (with root permissions):"
echo
echo
"etermount <//server/share> [</path/mountpoint>]"
echo
echo
"If the mountpoint isn't specified, it's default value is determined"
echo
"in the variable DEFAULT_MOUNTPOINT in the config file /etc/etercifs.conf"
echo
"(current value of DEFAULT_MOUNTPOINT is '
$DEFAULT_MOUNTPOINT
')."
echo
echo
"Report bugs to <support@etersoft.ru>."
}
[
"
$1
"
==
'--help'
-o
"
$1
"
==
'-h'
]
&&
{
help_text
;
exit
0
;
}
[
"$#"
-ge
1
-a
"$#"
-le
2
]
||
fatal
'Usage: etermount <//server/share> [</path/mountpoint>]'
[
"$#"
-ge
1
-a
"$#"
-le
2
]
||
fatal
'Usage: etermount <//server/share> [</path/mountpoint>]'
if
[
"
$2
"
==
''
]
;
then
if
[
"
$2
"
==
''
]
;
then
...
@@ -43,7 +64,7 @@ fi
...
@@ -43,7 +64,7 @@ fi
create_share_dir
$SHARE_PATH
create_share_dir
$SHARE_PATH
if
$(
$SUDO
mount
-t
cifs
"
$1
"
$SHARE_PATH
-o
$MOUNT_OPTIONS
)
;
then
if
$(
$SUDO
mount
-t
cifs
"
$1
"
$SHARE_PATH
-o
$MOUNT_OPTIONS
&>/dev/null
)
;
then
echo
"Info: mount of share
$1
in mountpoint
$SHARE_PATH
has been successfully"
echo
"Info: mount of share
$1
in mountpoint
$SHARE_PATH
has been successfully"
else
else
fatal
"Warning: error while mount of share
$1
in mountpoint
$SHARE_PATH
!"
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