diff options
Diffstat (limited to 'install/autodetect')
-rw-r--r-- | install/autodetect | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/install/autodetect b/install/autodetect index 0010da3..adfee9f 100644 --- a/install/autodetect +++ b/install/autodetect @@ -20,10 +20,13 @@ install () if [ ${UID} -eq 0 -o "$(groups | grep disk)" != "" ]; then for fs in $(findfs | sort | uniq); do - for mod in $(find "${MODULEDIR}" -type f -name "${fs}.ko"); do - if [ -n "${mod}" ]; then - AUTODETECT="${AUTODETECT} ${mod}" - fi + allfs="${fs} $(modprobe --resolve-alias ${fs})" + for mod in ${allfs}; do + for modfile in $(find "${MODULEDIR}" -type f -name "${mod}.ko"); do + if [ -n "${modfile}" ]; then + AUTODETECT="${AUTODETECT} ${modfile}" + fi + done done done |