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