From 3719079643a98af53ee3a69cb578f8c26b19f2b2 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Fri, 23 Jan 2009 11:13:02 -0600 Subject: Fix a dash/underscore module name issue This was introduced with the switch to resolve-modalias Signed-off-by: Aaron Griffin --- functions | 7 ++++--- 1 file 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 -- cgit v1.2.3-24-g4f1b