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
7f4ce271
Commit
7f4ce271
authored
Mar 02, 2011
by
Pavel Shilovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build on RHEL-like distros
parent
f95385d3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
functions.sh
etercifs/functions.sh
+3
-4
No files found.
etercifs/functions.sh
View file @
7f4ce271
...
@@ -48,13 +48,12 @@ split_kernel_version()
...
@@ -48,13 +48,12 @@ split_kernel_version()
check_for_centos
()
check_for_centos
()
{
{
SPECIFIC_CENTOS
=
SPECIFIC_CENTOS
=
if
[
-r
"/etc/redhat-release"
]
;
then
if
which lsb_release
>
/dev/null
;
then
grep
'CentOS'
/etc/redhat-release
>
/dev/null
&&
SPECIFIC_CENTOS
=
1
lsb_release
-d
| egrep
-q
'CentOS|Red Hat|Scientific Linux|NauLinux|LinuxWizard'
&&
SPECIFIC_CENTOS
=
1
grep
'Red Hat'
/etc/redhat-release
>
/dev/null
&&
SPECIFIC_CENTOS
=
1
fi
fi
if
[
-n
"
$SPECIFIC_CENTOS
"
]
;
then
if
[
-n
"
$SPECIFIC_CENTOS
"
]
;
then
echo
echo
echo
"Found
CentOS or RHEL
."
echo
"Found
RHEL-like distribution
."
kernel_release4
kernel_release4
N1
=
`
echo
$KERNEL4
|
cut
-d
"."
-f
1
`
N1
=
`
echo
$KERNEL4
|
cut
-d
"."
-f
1
`
...
...
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