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
73bab906
Commit
73bab906
authored
Mar 05, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
workaround for /lib/modules on ALT and do list uniq
parent
37d0f13e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
checkmodule.sh
etercifs/checkmodule.sh
+2
-1
functions.sh
etercifs/functions.sh
+4
-1
No files found.
etercifs/checkmodule.sh
View file @
73bab906
...
@@ -47,7 +47,8 @@ check_build_module()
...
@@ -47,7 +47,8 @@ check_build_module()
echo
"====================================================================="
echo
"====================================================================="
echo
"Check build etercifs module for all found kernels"
echo
"Check build etercifs module for all found kernels"
BUILTLIST
=
BUILTLIST
=
for
KERNSRC
in
$(
list_kernel_headers
)
;
do
# Note: we can skip any duplicates here
for
KERNSRC
in
$(
list_kernel_headers | xargs
-n1
realpath
|
sort
-u
)
;
do
echo
"---------------------------------------------------------------------"
echo
"---------------------------------------------------------------------"
detect_kernel
detect_kernel
if
[
-z
"
$KERNELVERSION
"
]
;
then
if
[
-z
"
$KERNELVERSION
"
]
;
then
...
...
etercifs/functions.sh
View file @
73bab906
...
@@ -100,7 +100,10 @@ create_builddir()
...
@@ -100,7 +100,10 @@ create_builddir()
list_kernel_headers
()
list_kernel_headers
()
{
{
local
LM
local
LM
for
LM
in
`
ls
-d
/lib/modules/
*
/build
`
;
do
local
LMP
=
"/lib/modules/*/build"
# forbidden on ALT
test
-x
/lib/modules
||
LMP
=
"/usr/src/linux-*"
for
LM
in
`
ls
-d
$LMP
`
;
do
[
-r
"
$LM
"
]
||
continue
[
-r
"
$LM
"
]
||
continue
[
-L
$(
readlink
$LM
)
]
&&
continue
[
-L
$(
readlink
$LM
)
]
&&
continue
[
-f
$LM
/.config
]
||
continue
[
-f
$LM
/.config
]
||
continue
...
...
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