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
75a80156
Commit
75a80156
authored
Oct 07, 2008
by
Konstantin Baev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added usage Generic for etercifs sources
parent
1a50df1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
functions.sh
etercifs/functions.sh
+15
-1
No files found.
etercifs/functions.sh
View file @
75a80156
...
...
@@ -19,19 +19,33 @@ get_sd()
{
BASE_KERNEL_SOURCES_DIR
=
BASE_KERNEL_SOURCES_DIR
=
`
grep
-i
$1
kernel_src.list |
head
-n1
|
cut
-d
" "
-f
2 2>/dev/null
`
}
get_etercifs_sd
()
{
ETERCIFS_SOURCES_LIST
=
ETERCIFS_SOURCES_LIST
=
`
grep
-i
$1
etercifs_src.list |
head
-n1
|
cut
-d
" "
-f
2 2>/dev/null
`
}
get_src_dir
()
{
get_sd
`
$DISTR_VENDOR
-e
`
[
-z
"
$BASE_KERNEL_SOURCES_DIR
"
]
&&
get_sd
`
$DISTR_VENDOR
-d
`
[
-z
"
$BASE_KERNEL_SOURCES_DIR
"
]
&&
{
echo
"Unknown
`
$DISTR_VENDOR
-d
`
, use Generic"
;
get_sd Generic
;
}
[
-z
"
$BASE_KERNEL_SOURCES_DIR
"
]
&&
{
echo
"Unknown
`
$DISTR_VENDOR
-d
`
, use Generic
for kernel sources
"
;
get_sd Generic
;
}
[
-z
"
$BASE_KERNEL_SOURCES_DIR
"
]
&&
return
1
return
0
}
get_etercifs_src_dir
()
{
get_etercifs_sd
`
$DISTR_VENDOR
-e
`
[
-z
"
$ETERCIFS_SOURCES_LIST
"
]
&&
get_etercifs_sd
`
$DISTR_VENDOR
-d
`
[
-z
"
$ETERCIFS_SOURCES_LIST
"
]
&&
{
echo
"Unknown
`
$DISTR_VENDOR
-d
`
, use Generic for etercifs sources"
;
get_etercifs_sd Generic
;
}
[
-z
"
$ETERCIFS_SOURCES_LIST
"
]
&&
return
1
return
0
}
exit_handler
()
{
local
rc
=
$?
...
...
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