diff options
author | Dan McGee <dan@archlinux.org> | 2011-01-31 02:15:53 +0100 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2011-01-31 21:44:35 +0100 |
commit | 643e98eeb42677a9ce8c32fa44d4ee61d02f7fcf (patch) | |
tree | 4741c749f06e3dd96260fc8b6f7d49a477f7853c /install/autodetect | |
parent | 19989173595b854ccd745f932864cf891606613c (diff) | |
download | mkinitcpio-643e98eeb42677a9ce8c32fa44d4ee61d02f7fcf.tar.gz mkinitcpio-643e98eeb42677a9ce8c32fa44d4ee61d02f7fcf.tar.xz |
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 <dan@archlinux.org>
Diffstat (limited to 'install/autodetect')
-rw-r--r-- | install/autodetect | 3 |
1 files changed, 1 insertions, 2 deletions
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 |