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
0f70d52c
Commit
0f70d52c
authored
May 12, 2011
by
Pavel Shilovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CentOS 5.6 support into functions.sh
parent
4733a574
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
functions.sh
etercifs/functions.sh
+13
-4
No files found.
etercifs/functions.sh
View file @
0f70d52c
...
...
@@ -64,17 +64,23 @@ check_for_centos()
CENTOS
=
0
if
[
"
$N1
"
-eq
2
]
&&
[
"
$N2
"
-eq
6
]
;
then
if
[
"
$N3
"
-eq
18
]
;
then
if
[
"
$N4
"
-eq
194
]
;
then
if
[
"
$N4
"
-eq
238
]
;
then
echo
"Your kernel is 2.6.18-238.x"
CENTOS
=
56
elif
[
"
$N4
"
-gt
238
]
;
then
echo
"Warning! Your kernel is newer than 2.6.18-238.x"
CENTOS
=
56
elif
[
"
$N4
"
-eq
194
]
;
then
echo
"Your kernel is 2.6.18-194.x"
CENTOS
=
55
elif
[
"
$N4
"
-gt
194
]
;
then
echo
"Warning! Your kernel is newer than 2.6.18-194.x"
echo
"Warning! Your kernel is newer than 2.6.18-194.x
and older than 2.6.18.238.x
"
CENTOS
=
55
elif
[
"
$N4
"
-eq
164
]
;
then
echo
"Your kernel is 2.6.18-164.x"
CENTOS
=
54
elif
[
"
$N4
"
-gt
164
]
;
then
echo
"Warning! Your kernel is newer than 2.6.18-164.x"
echo
"Warning! Your kernel is newer than 2.6.18-164.x
and older than 2.6.18.194.x
"
CENTOS
=
54
elif
[
"
$N4
"
-eq
128
]
;
then
echo
"Your kernel is 2.6.18-128.x"
...
...
@@ -113,7 +119,10 @@ detect_etercifs_sources()
# CentOS-RHEL specific part
check_for_centos
if
[
-n
"
$SPECIFIC_CENTOS
"
]
;
then
if
[
"
$CENTOS
"
-eq
55
]
;
then
if
[
"
$CENTOS
"
-eq
56
]
;
then
echo
"Building from legacy sources with patch for kernels 2.6.18-238.x from CentOS 5.6."
KERNEL_SOURCE_ETERCIFS_LINK
=
`
ls
-1
$ETERCIFS_SOURCES_LIST
|
grep
'centos56'
|
sort
-r
|
head
-n
1
`
elif
[
"
$CENTOS
"
-eq
55
]
;
then
echo
"Building from legacy sources with patch for kernels 2.6.18-194.x from CentOS 5.5."
KERNEL_SOURCE_ETERCIFS_LINK
=
`
ls
-1
$ETERCIFS_SOURCES_LIST
|
grep
'centos55'
|
sort
-r
|
head
-n
1
`
elif
[
"
$CENTOS
"
-eq
54
]
;
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