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
3b8029ea
Commit
3b8029ea
authored
Feb 11, 2009
by
Konstantin Baev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CIFS_VERSION in module replaced by version of etercifs package
parent
a690556c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
2 deletions
+28
-2
etercifs
etercifs/etercifs
+12
-2
functions.sh
etercifs/functions.sh
+16
-0
No files found.
etercifs/etercifs
View file @
3b8029ea
...
...
@@ -169,8 +169,18 @@ status()
local
PRECOMP
echo
"CIFS module status:"
if
is_moduled
;
then
echo
" kernel module
$MODULENAME
version
$MODULEVERSION
is loaded"
# `modinfo etercifs | grep ^version:`
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"
if
[
$MODVER
]
;
then
echo
" kernel module
$MODULENAME
version
$MODVER
is loaded"
else
echo
" kernel module
$MODULENAME
is loaded"
fi
if
[
"
$MODULEVERSION
"
!=
"
$MODVER
"
]
;
then
[
$MODVER
]
&&
echo
" WARNING!!! Versions of package etercifs and module etercifs DON'T MATCH!!!"
fi
else
if
is_origmoduled
;
then
echo
" origin kernel module
$ORIGMODULENAME
loaded"
...
...
etercifs/functions.sh
View file @
3b8029ea
...
...
@@ -146,6 +146,21 @@ dkms_build_module()
dkms
install
-m
$MODULENAME
-v
$MODULEVERSION
--rpm_safe_upgrade
}
change_cifsversion
()
{
if
[
-f
$BUILDDIR
/cifsfs.h
]
;
then
CIFSVERSION
=
`
cat
$BUILDDIR
/cifsfs.h |
grep
CIFS_VERSION
`
CIFSVERSION
=
`
echo
$CIFSVERSION
|
sed
's|#define CIFS_VERSION||g'
`
CIFSVERSION
=
`
echo
$CIFSVERSION
|
sed
's|"||g'
`
CIFSVERSION
=
`
echo
$CIFSVERSION
|
sed
's| ||g'
`
cp
$BUILDDIR
/cifsfs.h
$BUILDDIR
/cifsfs.h.orig
sed
-e
"s/
$CIFSVERSION
/
$MODULEVERSION
/g"
$BUILDDIR
/cifsfs.h.orig
>
$BUILDDIR
/cifsfs.h
echo
"Setting etercifs version: OK"
else
echo
"Setting etercifs version: FAIL"
fi
}
compile_module
()
{
detect_etercifs_sources
...
...
@@ -175,6 +190,7 @@ compile_module()
echo
"WARNING: the .config file in kernel source directory does not exist!"
fi
change_cifsversion
make
$USEGCC
-C
$KERNSRC
here
=
$BUILDDIR
SUBDIRS
=
$BUILDDIR
clean
make
$USEGCC
-C
$KERNSRC
here
=
$BUILDDIR
SUBDIRS
=
$BUILDDIR
modules
$MAKESMP
}
...
...
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