Lines 136-142
Link Here
|
136 |
unload_modules_26() { |
136 |
unload_modules_26() { |
137 |
# First of all, remove the snd module and all the modules depending |
137 |
# First of all, remove the snd module and all the modules depending |
138 |
# on it, this should remove already most of ALSA modules. |
138 |
# on it, this should remove already most of ALSA modules. |
139 |
unload_modules_recursive snd |
139 |
# Check first if snd is a modul and not built into the kernel |
|
|
140 |
[[ `lsmod | egrep "^snd\>" | awk '{ print $1}'` ]] && unload_modules_recursive snd |
140 |
|
141 |
|
141 |
# Then find the remaining ones, and handle them too. |
142 |
# Then find the remaining ones, and handle them too. |
142 |
for module in $(lsmod | egrep '^snd' | awk '{ print $1 }'); do |
143 |
for module in $(lsmod | egrep '^snd' | awk '{ print $1 }'); do |