[Initng-svn] r4326 - initng-ifiles/trunk/initfiles/system
svn at initng.thinktux.net
svn at initng.thinktux.net
Thu Jun 1 05:27:33 CEST 2006
Author: qupada
Date: Thu Jun 1 05:27:30 2006
New Revision: 4326
Modified:
initng-ifiles/trunk/initfiles/system/alsasound.ii
Log:
system/alsasound/seq:stop - unload modules snd_foo_synth if present before snd_seq_foo, eliminates SERVICE_FAIL_STOP_RCODE on systems where synth modules are present.
Modified: initng-ifiles/trunk/initfiles/system/alsasound.ii
==============================================================================
--- initng-ifiles/trunk/initfiles/system/alsasound.ii (original)
+++ initng-ifiles/trunk/initfiles/system/alsasound.ii Thu Jun 1 05:27:30 2006
@@ -72,12 +72,17 @@
done
};
script stop = {
+ for mod in `@/sbin/lsmod@ | @sed@ -ne '2,$ { s/ .*$//; /^snd[_-].*[_-]synth/ { /oss/ !p} }'`
+ do
+ echo "Unloading ${mod}"
+ @/sbin/modprobe@ -r ${mod}
+ done
for mod in `@/sbin/lsmod@ | @sed@ -ne '2,$ { s/ .*$//; /^snd[_-]seq/ { /oss/ !p} }'`
do
echo "Unloading ${mod}"
@/sbin/modprobe@ -r ${mod}
done
- };
+};
}
service system/alsasound/ioctl32 {
More information about the Initng-svn
mailing list