I tried to use the init script included in media-sound/aumix-2.8-r2 on my Sparc system to get my mixer settings saved/restored automatically, and it aborts with an error message: "Sound support has not been compiled into the kernel, or is disabled. Please check that the correct modules is loaded." I am using the "cs4231" kernel module from the 2.4.18-sparc kernel. The line that causes the problem is in /etc/init.d/aumix: if [ -z "`egrep 'sound|OSS' /proc/devices`" ] && [ ! -d /proc/asound ] This does not find this audio device, because it is called "sparcaudio" in /proc/devices. I have fixed the problem by changing this line to if [ -z "`egrep 'sound|OSS|sparcaudio' /proc/devices`" ] && [ ! -d /proc/asound ]
In setting up my Ultra 5 again from scratch, I realize Jeremy fixed this only days after I reported it and just didn't mark the bug as resolved... Thanks! Unfortunately there is a bug in the bugfix. The line to check for sound devices is a bit different than before: if ! grep -q 'sound|OSS|sparcaudio' /proc/devices && [[ ! -d /proc/asound ]] The -E option is missing in the grep, so it doesn't regard the search text as a regular expression and doesn't find an appropriate entry. The following line works correctly: if ! grep -q -E 'sound|OSS|sparcaudio' /proc/devices && [[ ! -d /proc/asound ]] Thanks, Peter
Fixed now. Thanks for pointing it out.