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
575cbfd2
Commit
575cbfd2
authored
Mar 26, 2009
by
Konstantin Baev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct message about loaded version of etercifs module (in status command)
parent
7cdf151a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
etercifs
etercifs/etercifs
+13
-4
No files found.
etercifs/etercifs
View file @
575cbfd2
...
...
@@ -172,14 +172,23 @@ status()
MODVER
=
`
modinfo etercifs |
grep
^version:
`
MODVER
=
`
echo
$MODVER
|
sed
's|version:||g'
`
MODVER
=
`
echo
$MODVER
|
sed
's| ||g'
`
echo
" package
$MODULENAME
version
$MODULEVERSION
is installed
"
echo
" package
$MODULENAME
version
$MODULEVERSION
"
if
[
$MODVER
]
;
then
echo
" kernel module
$MODULENAME
version
$MODVER
is
loaded
"
echo
" kernel module
$MODULENAME
version
$MODVER
is
built for current kernel
"
else
echo
" kernel module
$MODULENAME
is
loaded
"
echo
" kernel module
$MODULENAME
is
built
"
fi
if
[
"
$MODULEVERSION
"
!=
"
$MODVER
"
]
;
then
[
$MODVER
]
&&
echo
" WARNING!!! Versions of package etercifs and module etercifs DON'T MATCH!!!"
[
$MODVER
]
&&
echo
" WARNING!!! Versions of package
$MODULENAME
and built module
$MODULENAME
DON'T MATCH!!!"
fi
LOADEDMODVER
=
`
cat
/sys/module/
$MODULENAME
/version 2>/dev/null
`
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!!!"
fi
else
echo
" WARNING!!! Can't get version of loaded module
$MODULENAME
!"
fi
else
if
is_origmoduled
;
then
...
...
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