Magellan Linux

Diff of /alx-src/tags/alxconf-0_6_0-rc11/functions/config_modules.sh

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

revision 2151 by niro, Tue May 17 21:32:32 2011 UTC revision 2617 by niro, Wed Jul 6 22:04:05 2011 UTC
# Line 7  add_module() Line 7  add_module()
7   local module="$1"   local module="$1"
8   local arg="$2"   local arg="$2"
9    
10   if [ -n "$(find /lib/modules/$(uname -r) -name ${mod}.[o,k]*)" ]   if [[ -n $(find /lib/modules/$(uname -r) -name ${module}.[o,k]*) ]]
11   then   then
12   if [[ -z ${arg} ]]   if [[ -z ${arg} ]]
13   then   then
14   addconfig "${module}"   addconfig "${module}"
15   else   else
16   addconfig "${mod} ${arg}"   addconfig "${module} ${arg}"
17   fi   fi
18   fi   fi
19  }  }

Legend:
Removed from v.2151  
changed lines
  Added in v.2617