diff options
-rw-r--r-- | functions | 4 | ||||
-rwxr-xr-x | mkinitcpio | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -313,7 +313,7 @@ add_module() { module=${1%.ko*} # skip expensive stuff if this module has already been added - in_array "${module//-/_}" "${ADDED_MODULES[@]}" && return + (( ${ADDED_MODULES["$module"]} )) && return while IFS=':= ' read -r -d '' field value; do case "$field" in @@ -343,7 +343,7 @@ add_module() { # aggregate modules and add them all at once to save some forks (( QUIET )) || plain "adding module: %s" "$1" MODPATHS+=("$path") - ADDED_MODULES+=("${module//-/_}") + ADDED_MODULES["${module//-/_}"]=1 # handle module quirks case $module in @@ -18,8 +18,8 @@ COMPRESSION=gzip declare MODULE_FILE= GENIMG= PRESET= COMPRESSION_OPTIONS= BUILDROOT= declare NC= BOLD= BLUE= GREEN= RED= YELLOW= declare -i QUIET=1 SHOW_AUTOMODS=0 SAVELIST=0 COLOR=1 -declare -a SKIPHOOKS ADDED_MODULES MODPATHS -declare -A RUNHOOKS +declare -a SKIPHOOKS MODPATHS +declare -A RUNHOOKS ADDED_MODULES # export a sane PATH export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' |