31 |
config=/etc/modules.conf |
config=/etc/modules.conf |
32 |
alsactl=/usr/sbin/alsactl |
alsactl=/usr/sbin/alsactl |
33 |
asoundcfg=/etc/asound.state |
asoundcfg=/etc/asound.state |
34 |
|
if [ -x /sbin/lsmod ]; then |
35 |
|
lsmod=/sbin/lsmod |
36 |
|
else |
37 |
|
lsmod=lsmod |
38 |
|
fi |
39 |
|
|
40 |
if [ ! -r $config ]; then |
if [ ! -r $config ]; then |
41 |
if [ -r /etc/conf.modules ]; then |
if [ -r /etc/conf.modules ]; then |
96 |
# |
# |
97 |
# remove all sound modules |
# remove all sound modules |
98 |
# |
# |
99 |
/sbin/lsmod | grep -E "^snd" | grep -Ev "^(snd-page-alloc|snd-hammerfall-mem)" | while read line; do \ |
$lsmod | grep -E "^snd" | grep -Ev "(snd-page-alloc|snd_page_alloc)" | while read line; do \ |
100 |
/sbin/rmmod `echo $line | cut -d ' ' -f 1`; \ |
/sbin/rmmod `echo $line | cut -d ' ' -f 1`; \ |
101 |
done |
done |
102 |
# remove the 2.2 soundcore module (if possible) |
# remove the 2.2 soundcore module (if possible) |