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
37d0f13e
Commit
37d0f13e
authored
Mar 05, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
detect_etercifs_sources: drop obsoleted code
parent
bb49886f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
18 deletions
+9
-18
functions.sh
etercifs/functions.sh
+9
-18
No files found.
etercifs/functions.sh
View file @
37d0f13e
...
...
@@ -52,33 +52,24 @@ fake_source_versions()
detect_etercifs_sources
()
{
KERNEL_STRING
=
if
which lsb_release
>
/dev/null
;
then
# TODO epm
DISTRO
=
$(
lsb_release
-d
)
KERNEL_STRING
=
$(
./source.sh
"
$DISTRO
"
"
$KERNELVERSION
"
< source.table
)
fi
KERNEL_SOURCE_ETERCIFS
=
# TODO epm
DISTRO
=
$(
lsb_release
-d
2>/dev/null
)
KERNEL_SOURCE_ETERCIFS
=
$(
./source.sh
"
$DISTRO
"
"
$KERNELVERSION
"
< source.table
)
# generic kernels
if
[
-z
"
$KERNEL_S
TRING
"
]
||
[
"
$KERNEL_STRING
"
=
"fixme"
]
;
then
KERNEL_S
TRING
=
$(
fake_source_versions | ./source.sh
"Generic"
"
$KERNELVERSION
"
)
if
[
-z
"
$KERNEL_S
OURCE_ETERCIFS
"
]
||
[
"
$KERNEL_SOURCE_ETERCIFS
"
=
"fixme"
]
;
then
KERNEL_S
OURCE_ETERCIFS
=
$(
fake_source_versions | ./source.sh
"Generic"
"
$KERNELVERSION
"
)
fi
if
[
-n
"
$KERNEL_S
TRING
"
]
;
then
echo
"Building for
$KERNEL_S
TRING
kernel version"
if
[
-n
"
$KERNEL_S
OURCE_ETERCIFS
"
]
;
then
echo
"Building for
$KERNEL_S
OURCE_ETERCIFS
kernel version"
else
echo
"Can't locate any appropiate kernel sources for the kernel
$KERNELVERSION
"
check_headers
exit
fi
KERNEL_SOURCE_ETERCIFS
=
"
$KERNEL_STRING
"
# TODO: print info about strict version
#LATEST_SOURCES=$(echo $KERNEL_SOURCE_ETERCIFS | cut -d"-" -f 4)
#echo "Warning! Couldn't find module sources for the kernel $KERNEL!"
#echo "Using the latest supported sources - from v$LATEST_SOURCES kernel!"
}
exit_handler
()
...
...
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