Extract variable _MODULES_LOAD to resolve duplication and later re-use
authorSebastian Pipping <sebastian@pipping.org>
Sun, 12 Aug 2012 18:06:34 +0000 (20:06 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Sun, 12 Aug 2012 18:13:21 +0000 (20:13 +0200)
genkernel

index 200b3fbf4414c30dbd8e2699aac879b9c3404f15..b31444069248f2b695bc9abb66e0d4658d168eb9 100755 (executable)
--- a/genkernel
+++ b/genkernel
@@ -102,7 +102,8 @@ get_official_arch
 
 # Read arch-specific config
 source ${ARCH_CONFIG} || gen_die "Could not read ${ARCH_CONFIG}"
-source ${GK_SHARE}/arch/${ARCH}/modules_load || gen_die "Could not read ${GK_SHARE}/arch/${ARCH}/modules_load"
+_MODULES_LOAD=${GK_SHARE}/arch/${ARCH}/modules_load
+source "${_MODULES_LOAD}" || gen_die "Could not read ${_MODULES_LOAD}"
 
 # Merge modules_load from config
 for group_modules in ${!AMODULES_*}; do