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
08a553d4
Commit
08a553d4
authored
Feb 04, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
functions.sh: small workround and update comments
parent
928ba09c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
functions.sh
etercifs/functions.sh
+11
-6
No files found.
etercifs/functions.sh
View file @
08a553d4
...
...
@@ -174,7 +174,7 @@ detect_etercifs_sources()
fi
fi
[
-n
"
`
ls
$ETERCIFS_SOURCES_LIST
`
"
]
||
fatal
"Etercifs kernel module sources does not installed!"
[
-n
"
`
ls
$ETERCIFS_SOURCES_LIST
`
"
]
||
fatal
"Etercifs kernel module sources does not installed
(it is possible, etercifs package is obsoleted)
!"
KERNEL_SOURCE_ETERCIFS_LINK
=
`
ls
-1
$ETERCIFS_SOURCES_LIST
|
grep
-F
$KERNEL_STRING
|
sort
-r
|
head
-n
1
`
if
[
-z
"
$KERNEL_SOURCE_ETERCIFS_LINK
"
]
;
then
...
...
@@ -253,6 +253,11 @@ detect_host_kernel()
if
[
-z
"
$KERNSRC
"
]
;
then
KERNSRC
=
/lib/modules/
$KERNELVERSION
/build
# workaround for missed link on deb-based systems
if
[
!
-d
"
$KERNSRC
"
]
;
then
local
KN
=
/usr/src/linux-headers-
$KERNELVERSION
[
-d
"
$KN
"
]
&&
KERNSRC
=
"
$KN
"
fi
fi
}
...
...
@@ -264,14 +269,14 @@ check_headers()
Error: no kernel headers found at
$KERNSRC
Please install package
kernel-headers-modules-XXXX for ALT Linux
kernel-devel for Fedora / ASP Linux
dkms-etercifs for Mandriva 2009 and newer
kernel-devel for CentOS / Fedora
linux-headers-XXXX for Debian / Ubuntu
kernel-source-XXXX for SUSE
kernel-source-XXXX for Slackware / MOPSLinux
kernel-source-XXXX for SUSE Linux
kernel-source-XXXX for Slackware
dkms-etercifs for Mandriva
where XXXX is your current version from uname -r:
$(
uname
-r
)
or use KERNELVERSION variable to set correct version (for /lib/modules/KERNELVERSION/build)
(use KERNSRC variable to set correct kernel headers location)
or use KERNSRC variable to set correct kernel headers location
Exiting...
EOF
# FIXME: check detect
...
...
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