eval DO_`echo $modules | sed 's/-//'`=1
done
else
+ for modules in $MY_HWOPTS
+ do
+ eval DO_`echo $modules | sed 's/-//'`=1
+ done
good_msg 'Skipping module load; no modules in the initrd!'
fi
#!/bin/bash
# Genkernel v3
-GK_V='3.2.0_pre9'
+GK_V='3.2.0_pre10'
TEMP='/var/tmp/genkernel'
TODEBUGCACHE=1 # Until an error occurs or DEBUGFILE is fully qualified.
source ${ARCH_CONFIG} || gen_die "Could not read ${ARCH_CONFIG}"
source ${GK_SHARE}/${ARCH}/modules_load || gen_die "Could not read ${GK_SHARE}/${ARCH}/modules_load"
+# Merge modules_load from config
+for group_modules in ${!AMODULES_*}; do
+ group="$(echo $group_modules | cut -d_ -f2)"
+ eval cmodules="\$$group_modules"
+ eval MODULES_${group}=\"\${MODULES_${group}} ${cmodules}\"
+ print_info 1 "<config> Merged AMODULES_${group}:'${cmodules}' into MODULES_${group}"
+done
+
[ ! -f "${TEMP}" ] && mkdir -p "${TEMP}"
[ ! -f "${CACHE_DIR}" ] && mkdir -p "${CACHE_DIR}"