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
8711d819
Commit
8711d819
authored
Jul 09, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix various comments
parent
c545278d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
etercifs
etercifs/etercifs
+13
-11
No files found.
etercifs/etercifs
View file @
8711d819
...
...
@@ -2,13 +2,14 @@
#
# etercifs CIFS support for Linux kernel
#
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Authors: Vitaly Lipatov <lav@etersoft.ru>
# Konstantin Baev <kipruss@altlinux.org>
#
# chkconfig: 345 03 80
#
# description: linux cifs module \
# Multiplatform init script \
# 2006, 2007, 2008 Public domain
# 2006, 2007, 2008
, 2009
Public domain
#
# modulename: etercifs
#
...
...
@@ -145,11 +146,12 @@ load_module()
local
i
if
is_origmoduled
;
then
umount_cifs
echo
-n
"Removing
CIFS kernel module
... "
echo
-n
"Removing
vanilla kernel module
$ORIGMODULENAME
... "
$RMMOD
$ORIGMODULENAME
||
{
failure
;
return
;
}
success
fi
echo
-n
"Loading
CIFS kernel module
... "
echo
-n
"Loading
kernel module
$MODULENAME
... "
get_module_version
...
...
@@ -158,7 +160,7 @@ load_module()
failure
show_module_version
echo
" Please, run 'service etercifs build' to build the etercifs module (recommended)"
echo
" or run 'CHECK_VERSION=0 service etercifs restart' to disableing
check."
#echo " or run 'CHECK_VERSION=0 service etercifs restart' to disable
check."
return
}
fi
...
...
@@ -184,9 +186,9 @@ start()
stop
()
{
umount_cifs
echo
-n
"Unloading
CIFS kernel module
... "
echo
-n
"Unloading
kernel module
$MODULENAME
... "
is_moduled
||
{
passed
;
return
;
}
$RMMOD
$MODULENAME
||
{
failure
;
echo
"You have to umount all CIFS resources."
;
return
;
}
$RMMOD
$MODULENAME
||
{
failure
;
echo
"You have to umount all CIFS resources
before module unloading
."
;
return
;
}
success
}
...
...
@@ -199,7 +201,7 @@ show_module_version()
echo
" kernel module
$MODULENAME
is built"
fi
if
[
"
$MODULEVERSION
"
!=
"
$MODVER
"
]
;
then
[
$MODVER
]
&&
echo
" WARNING!!! Versions of package
$MODULENAME
and built module
$MODULENAME
DON'T MATCH!!!"
[
$MODVER
]
&&
echo
" WARNING!!! Versions of
the
package
$MODULENAME
and built module
$MODULENAME
DON'T MATCH!!!"
fi
}
...
...
@@ -208,7 +210,7 @@ show_loaded_module_version()
if
[
$LOADEDMODVER
]
;
then
echo
" kernel module
$MODULENAME
version
$LOADEDMODVER
is loaded"
if
[
"
$MODULEVERSION
"
!=
"
$LOADEDMODVER
"
]
;
then
[
$MODVER
]
&&
echo
" WARNING!!! Versions of package
$MODULENAME
and loaded module
$MODULENAME
DON'T MATCH!!!"
[
$MODVER
]
&&
echo
" WARNING!!! Versions of
the
package
$MODULENAME
and loaded module
$MODULENAME
DON'T MATCH!!!"
fi
else
echo
" WARNING!!! Can't get version of loaded module
$MODULENAME
!"
...
...
@@ -226,10 +228,10 @@ status()
show_loaded_module_version
else
if
is_origmoduled
;
then
echo
"
origin
kernel module
$ORIGMODULENAME
loaded"
echo
"
vanilla
kernel module
$ORIGMODULENAME
loaded"
fi
echo
" WARNING!!! Kernel module
$MODULENAME
is not loaded!"
echo
"
Possible ERRORS when working with WINE
!"
echo
"
WINE@Etersoft won't run on the CIFS resource
!"
fi
}
...
...
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