From 643e98eeb42677a9ce8c32fa44d4ee61d02f7fcf Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 30 Jan 2011 19:15:53 -0600 Subject: Use new helper functions instead of system commands Replace all of the repeated calls to dirname and basename with our new replacments. Also replace the 'grep ... /dev/null' idiom with calls to 'grep -q', which does exactly what we want. Signed-off-by: Dan McGee --- install/autodetect | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'install') diff --git a/install/autodetect b/install/autodetect index 5c86eb0..6b8477f 100644 --- a/install/autodetect +++ b/install/autodetect @@ -54,8 +54,7 @@ install () fi for m in ${AUTODETECT}; do - modname="${m%.gz}" - modname="$(basename ${modname%.ko})" + modname="$(get_module_name "${m}")" echo "${modname}" >> "${MODULE_FILE}" done -- cgit v1.2.3-24-g4f1b