Magellan Linux

Diff of /alx-src/branches/alxconf-060/functions/config_modules.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2120 by niro, Mon May 9 15:57:20 2011 UTC revision 2121 by niro, Mon May 16 11:07:22 2011 UTC
# Line 71  create_argfile() Line 71  create_argfile()
71   local count="${#ALX_MODULES[*]}"   local count="${#ALX_MODULES[*]}"
72   local i   local i
73    
74     :> ${argfile}
75    
76   for ((i=0; i<count; i++))   for ((i=0; i<count; i++))
77   do   do
78   if [[ ! -z ${ALX_MODULES_ARG[${i}]} ]]   if [[ ! -z ${ALX_MODULES_ARG[${i}]} ]]
# Line 91  config_modules() Line 93  config_modules()
93    
94   # location of the modules.autoload file   # location of the modules.autoload file
95   modfile="/etc/modules.autoload"   modfile="/etc/modules.autoload"
  # location of the modules argument file  
  argfile="${SETTINGSPATH}/modules-args"  
96    
97   # clear the old one   # clear the old one
98   :> ${modfile}   :> ${modfile}
  :> ${argfile}  
99    
100   # create a new arg file   # create a new arg file
101   create_argfile   create_argfile

Legend:
Removed from v.2120  
changed lines
  Added in v.2121