Diff of /alx-src/tags/alxconf-0_6_2/functions/config_modules.sh
Parent Directory | Revision Log | 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 | } | } |
|