Bug 8686 - Lost soundcard-setup
Summary: Lost soundcard-setup
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: initscripts
Version: 1.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-01-21 01:58 UTC by Enrico Scholz
Modified: 2014-03-17 02:12 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-01-21 17:57:44 UTC


Attachments (Terms of Use)

Description Enrico Scholz 2000-01-21 01:58:17 UTC
To restore the soundcard-setup (volume) the initscripts are looking for an
installed sound-module. The loading of this depends on an entry in
/etc/conf.modules which is being checked for in /etc/rc.d/rc.sysinit with:

  if grep -s -q "^alias sound " /etc/conf.modules ; then

But if the /etc/conf.modules file was edited manually, tabulators are often
used. Such entries (e.g. "alias sound\t...") will not be detected by your
pattern.

A better check would be for the regexp '^alias\>[^w]*\<sound\>'

Comment 1 Bill Nottingham 2000-01-21 17:32:59 UTC
Fixed in initscripts-4.84-1.

Comment 2 Enrico Scholz 2000-01-21 17:54:59 UTC
Sorry, but in my last posting I have not noticed that aliases for names like
"sound-slot-0" are possible. Because I am not sure if all possible entries can
be detected by regexp's I suggest to check the normalized output of "modprobe
-c":

if modprobe -c | grep -s -q '^alias sound '; ...
if modprobe -c | grep -s -q '^alias midi '; ...

Comment 3 Bill Nottingham 2000-01-21 17:57:59 UTC
What it does is 'egrep "^alias[[:space:]]+sound[[:space:]]+" conf.modules | awk
'{ print $3 }', and if that alias is not 'off', it loads whatever that is.

That should be good enough for now. If we can get rid of the
ISA dma issues, we'll drop loading the modules entirely
and let kmod do its thing.


Note You need to log in before you can comment on or make changes to this bug.