summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions7
1 files changed, 4 insertions, 3 deletions
diff --git a/functions b/functions
index 354a855..9c5f75b 100644
--- a/functions
+++ b/functions
@@ -8,7 +8,7 @@ auto_modules ()
[ -n "$m" ] && mods="$mods $m"
done
- echo "${mods}"
+ echo "${mods}" | sed 's|-|_|g'
[ -z "${mods}" ] && return 1
return 0
}
@@ -26,8 +26,9 @@ checked_modules ()
{
if [ -e "${MODULE_FILE}" ]; then
for mod in $(all_modules $@); do
- if grep "^$(basename ${mod%%\.ko})$" "${MODULE_FILE}" >/dev/null 2>&1; then
- echo ${mod}
+ modname="$(basename ${mod%%\.ko} | sed 's|-|_|g')"
+ if grep "^${modname}$" "${MODULE_FILE}" >/dev/null 2>&1; then
+ echo ${modname}
fi
done
return 1