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
ec2e2b6a
Commit
ec2e2b6a
authored
Sep 23, 2011
by
Pavel Shilovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix module sources selecting
parent
f0ba392e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
functions.sh
etercifs/functions.sh
+18
-6
No files found.
etercifs/functions.sh
View file @
ec2e2b6a
...
...
@@ -142,13 +142,19 @@ detect_etercifs_sources()
# end of CentOS-RHEL specific part
if
[
-z
"
$KERNEL_SOURCE_ETERCIFS_LINK
"
]
;
then
ETERCIFS_SOURCES_LIST
=
$DATADIR
/sources/kernel-source-etercifs-2
*
kernel_release2
FIRSTNUM
=
`
echo
$KERNEL2
|
cut
-d
"."
-f
1
`
if
[
"
$FIRSTNUM
"
-eq
3
]
;
then
KERNEL_SOURCE_ETERCIFS_LINK
=
`
ls
-1
$ETERCIFS_SOURCES_LIST
|
grep
$KERNEL2
|
sort
-r
|
head
-n
1
`
fi
fi
if
[
-z
"
$KERNEL_SOURCE_ETERCIFS_LINK
"
]
;
then
ETERCIFS_SOURCES_LIST
=
$DATADIR
/sources/kernel-source-etercifs-[0-9]
*
KERNEL_SOURCE_ETERCIFS_LINK
=
`
ls
-1
$ETERCIFS_SOURCES_LIST
|
sort
-r
|
head
-n
1
`
OLD_IFS
=
$IFS
IFS
=
"-"
set
--
$KERNEL_SOURCE_ETERCIFS_LINK
echo
"Warning: using the lates supported sources (
$4
) that is not for current kernel version!"
IFS
=
$OLD_IFS
LATEST_SOURCES
=
`
echo
$KERNEL_SOURCE_ETERCIFS_LINK
|
cut
-d
"-"
-f
4
`
echo
"Warning! Couldn't find module sources for the current kernel
$KERNEL2
(
$LATEST_SOURCES
sources are selected)!"
echo
"Using the lates supported sources - from v
$LATEST_SOURCES
kernel!"
ETERCIFS_SOURCES_LIST
=
$DATADIR
/sources/kernel-source-etercifs
*
fi
...
...
@@ -170,6 +176,12 @@ create_builddir()
BUILDDIR
=
$tmpdir
/
${
FILENAME
%.tar.bz2
}
}
kernel_release2
()
{
# 3.0
KERNEL2
=
`
echo
$KERNELVERSION
|
sed
's/\([0-9]\+\.[0-9]\+\).*/\1/'
`
}
kernel_release
()
{
# 2.6.27
...
...
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