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
d1d3d6fd
Commit
d1d3d6fd
authored
Oct 28, 2011
by
Pavel Shilovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add OpenVZ CentOS 5.7 support into functions.sh
parent
b0c9be09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
functions.sh
etercifs/functions.sh
+17
-2
No files found.
etercifs/functions.sh
View file @
d1d3d6fd
...
@@ -55,6 +55,8 @@ check_for_centos()
...
@@ -55,6 +55,8 @@ check_for_centos()
echo
echo
echo
"Found RHEL-like distribution."
echo
"Found RHEL-like distribution."
OVZ_KERNEL
=
`
echo
$KERNELVERSION
|
grep
'stab'
`
kernel_release4
kernel_release4
N1
=
`
echo
$KERNEL4
|
cut
-d
"."
-f
1
`
N1
=
`
echo
$KERNEL4
|
cut
-d
"."
-f
1
`
N2
=
`
echo
$KERNEL4
|
cut
-d
"."
-f
2
`
N2
=
`
echo
$KERNEL4
|
cut
-d
"."
-f
2
`
...
@@ -64,7 +66,13 @@ check_for_centos()
...
@@ -64,7 +66,13 @@ check_for_centos()
CENTOS
=
0
CENTOS
=
0
if
[
"
$N1
"
-eq
2
]
&&
[
"
$N2
"
-eq
6
]
;
then
if
[
"
$N1
"
-eq
2
]
&&
[
"
$N2
"
-eq
6
]
;
then
if
[
"
$N3
"
-eq
18
]
;
then
if
[
"
$N3
"
-eq
18
]
;
then
if
[
"
$N4
"
-eq
238
]
;
then
if
[
"
$N4
"
-eq
274
]
;
then
echo
"Your kernel is 2.6.18-274.x"
CENTOS
=
57
elif
[
"
$N4
"
-gt
274
]
;
then
echo
"Warning! Your kernel is newer than 2.6.18-274.x"
CENTOS
=
56
elif
[
"
$N4
"
-eq
238
]
;
then
echo
"Your kernel is 2.6.18-238.x"
echo
"Your kernel is 2.6.18-238.x"
CENTOS
=
56
CENTOS
=
56
elif
[
"
$N4
"
-gt
238
]
;
then
elif
[
"
$N4
"
-gt
238
]
;
then
...
@@ -119,7 +127,14 @@ detect_etercifs_sources()
...
@@ -119,7 +127,14 @@ detect_etercifs_sources()
# CentOS-RHEL specific part
# CentOS-RHEL specific part
check_for_centos
check_for_centos
if
[
-n
"
$SPECIFIC_CENTOS
"
]
;
then
if
[
-n
"
$SPECIFIC_CENTOS
"
]
;
then
if
[
"
$CENTOS
"
-eq
56
]
;
then
if
[
-n
"
$OVZ_KERNEL
"
]
;
then
echo
"Building from legacy sources with patch for OpenVZ kernels 2.6.18-274.x from CentOS 5.7."
KERNEL_SOURCE_ETERCIFS_LINK
=
`
ls
-1
$ETERCIFS_SOURCES_LIST
|
grep
'centos-ovz'
|
sort
-r
|
head
-n
1
`
elif
[
"
$CENTOS
"
-eq
57
]
;
then
# The same as CentOS 5.6
echo
"Building from legacy sources with patch for kernels 2.6.18-274.x from CentOS 5.7."
KERNEL_SOURCE_ETERCIFS_LINK
=
`
ls
-1
$ETERCIFS_SOURCES_LIST
|
grep
'centos56'
|
sort
-r
|
head
-n
1
`
elif
[
"
$CENTOS
"
-eq
56
]
;
then
echo
"Building from legacy sources with patch for kernels 2.6.18-238.x from CentOS 5.6."
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
`
KERNEL_SOURCE_ETERCIFS_LINK
=
`
ls
-1
$ETERCIFS_SOURCES_LIST
|
grep
'centos56'
|
sort
-r
|
head
-n
1
`
elif
[
"
$CENTOS
"
-eq
55
]
;
then
elif
[
"
$CENTOS
"
-eq
55
]
;
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