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
d474c709
Commit
d474c709
authored
Aug 08, 2014
by
Pavel Shilovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Detect CentOS 7.0 during build
parent
49583f79
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
functions.sh
etercifs/functions.sh
+6
-0
No files found.
etercifs/functions.sh
View file @
d474c709
...
...
@@ -115,6 +115,9 @@ check_for_centos()
else
echo
"Warning! Your kernel is older than 2.6.18 or newer than 2.6.23"
fi
elif
[
"
$N1
"
-eq
3
]
&&
[
"
$N2
"
-eq
10
]
;
then
echo
"Your kernel is 3.10.x"
CENTOS
=
70
else
echo
"Warning! Your kernel in not 2.6.x"
fi
...
...
@@ -130,6 +133,9 @@ detect_etercifs_sources()
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_STRING
=
'centos-ovz'
elif
[
"
$CENTOS
"
-eq
70
]
;
then
echo
"Building from legacy sources with patch for kernels 3.10.x from CentOS 7.0."
KERNEL_STRING
=
'centos70'
elif
[
"
$CENTOS
"
-eq
60
]
;
then
echo
"Building from legacy sources with patch for kernels 2.6.32-x.y from CentOS 6.0."
KERNEL_STRING
=
'centos60'
...
...
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