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
4c36f014
Commit
4c36f014
authored
Mar 05, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix kernel checking
parent
d333c8ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
functions.sh
etercifs/functions.sh
+5
-5
No files found.
etercifs/functions.sh
View file @
4c36f014
...
...
@@ -94,13 +94,14 @@ check_for_centos()
echo
"Building from legacy sources with patch for kernels 2.6.18-274.x from CentOS 5.7."
KERNEL_STRING
=
'centos56'
elif
[
"
$N4
"
-gt
274
]
;
then
echo
"Warning! Your kernel is newer than 2.6.18-274.x"
echo
"Building from legacy sources with patch for kernels 2.6.18-238.x from CentOS 5.6."
KERNEL_STRING
=
'centos56'
elif
[
"
$N4
"
-eq
238
]
;
then
echo
"
Your kernel is 2.6.18-238.x
"
echo
"
Building from legacy sources with patch for kernels 2.6.18-238.x from CentOS 5.6.
"
KERNEL_STRING
=
'centos56'
elif
[
"
$N4
"
-gt
238
]
;
then
echo
"Warning! Your kernel is newer than 2.6.18-238.x"
echo
"Warning! Your kernel is newer than 2.6.18-238.x
and older than 2.6.18.274.x
"
KERNEL_STRING
=
'centos56'
elif
[
"
$N4
"
-eq
194
]
;
then
echo
"Your kernel is 2.6.18-194.x"
...
...
@@ -149,8 +150,7 @@ check_for_centos()
fi
elif
[
"
$N1
.
$N2
"
=
"3.10"
]
;
then
if
[
"
$N3
-
$N4
"
=
"0-1"
]
;
then
# FIXME
CENTOS
=
"GosLinux64"
KERNEL_STRING
=
'goslinux64'
else
echo
"Building from legacy sources with patch for kernels 3.10.x from CentOS 7.0."
KERNEL_STRING
=
'centos70'
...
...
@@ -172,7 +172,7 @@ check_for_suse()
echo
echo
"Found openSUSE distribution."
kernel_release
4
kernel_release
3
split_kernel_version
if
[
"
$N1
.
$N2
.
$N3
"
=
"3.16.7"
]
;
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