Commit 75a80156 authored by Konstantin Baev's avatar Konstantin Baev

Added usage Generic for etercifs sources

parent 1a50df1c
......@@ -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=$?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment