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
1cb50fcc
Commit
1cb50fcc
authored
Mar 05, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fixes
parent
8258f32a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
buildmodule.sh
etercifs/buildmodule.sh
+1
-1
functions.sh
etercifs/functions.sh
+4
-3
No files found.
etercifs/buildmodule.sh
View file @
1cb50fcc
...
@@ -30,7 +30,7 @@ detect_kernel_source()
...
@@ -30,7 +30,7 @@ detect_kernel_source()
detect_kernel_source
detect_kernel_source
if
[
-r
$SRC_DIR
/dkms.conf
]
&&
which dkms 2>/dev/null
>
/dev/null
]
;
then
if
[
-r
$SRC_DIR
/dkms.conf
]
&&
which dkms 2>/dev/null
>
/dev/null
;
then
echo
echo
echo
"Building
$MODULENAME
$MODULEVERSION
for
$KERNELVERSION
Linux kernel with dkms"
echo
"Building
$MODULENAME
$MODULEVERSION
for
$KERNELVERSION
Linux kernel with dkms"
dkms_build_module
dkms_build_module
...
...
etercifs/functions.sh
View file @
1cb50fcc
...
@@ -32,7 +32,7 @@ list_source_versions()
...
@@ -32,7 +32,7 @@ list_source_versions()
# arg: version target
# arg: version target
extract_source
()
extract_source
()
{
{
mkdir
-p
"
$2
"
||
return
mkdir
-p
"
$2
"
||
fatal
tar
-xJf
$ETERCIFS_SOURCES_TARBALL
-C
"
$2
"
--strip
1
"
$1
"
tar
-xJf
$ETERCIFS_SOURCES_TARBALL
-C
"
$2
"
--strip
1
"
$1
"
}
}
...
@@ -84,6 +84,7 @@ detect_etercifs_sources()
...
@@ -84,6 +84,7 @@ detect_etercifs_sources()
else
else
echo
"Can't locate any appropiate kernel sources for the kernel
$KERNELVERSION
"
echo
"Can't locate any appropiate kernel sources for the kernel
$KERNELVERSION
"
check_headers
check_headers
exit
fi
fi
KERNEL_SOURCE_ETERCIFS
=
"
$KERNEL_STRING
"
KERNEL_SOURCE_ETERCIFS
=
"
$KERNEL_STRING
"
...
@@ -115,9 +116,9 @@ create_builddir()
...
@@ -115,9 +116,9 @@ create_builddir()
tmpdir
=
tmpdir
=
tmpdir
=
"
$(
mktemp
-dt
"Etercifs.XXXXXXXX"
)
"
tmpdir
=
"
$(
mktemp
-dt
"Etercifs.XXXXXXXX"
)
"
trap
exit_handler HUP PIPE INT QUIT TERM EXIT
trap
exit_handler HUP PIPE INT QUIT TERM EXIT
BUILDDIR
=
$tmpdir
/
$KERNEL_SOURCE_ETERCIFS
BUILDDIR
=
"
$tmpdir
/
$KERNEL_SOURCE_ETERCIFS
"
fi
fi
extract_source
$KERNEL_SOURCE_ETERCIFS
$BUILDDIR
extract_source
"
$KERNEL_SOURCE_ETERCIFS
"
"
$BUILDDIR
"
}
}
list_kernel_headers
()
list_kernel_headers
()
...
...
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