Re: which init script takes care of loading the sound?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> This is what the nasd reports 
> 
> [root@localhost init.d]# cat nasd | more
> #!/bin/bash
> #
> # nasd        Starts nasd.
> #
> #
> # chkconfig: 345 88 88
> # description: Network transparent audio server
> 
> #Servicename
> SERVICE=nasd
> 
> #Source function library.
> . /etc/init.d/functions
> 
> [ -f /usr/bin/$SERVICE ] || exit 0
> 
> # Source config
> if [ -f /etc/sysconfig/$SERVICE ] ; then
>         . /etc/sysconfig/$SERVICE
> else
>         NASD_OPTIONS="-b -local"
> fi
> 
> RETVAL=0
> 
> start() {
> 
> I will add this after start() { in /etc/rc.d/init.d/nasd   
> 
> # Load mixer settings, here because I think it belongs here 
> grep -q "\(alsa\)" /proc/devices
> if [ $? = 0 -a -x /sbin/salsa ]; then
>    action $"Saving mixer settings" /sbin/salsa -l
> fi
> 
> to nasd and report back to check if it works 
> 
> 
> Will report back.
> 
> Regards,
> 
> Antonio 

DOES NOT WORK!!!  Do not try this at home.  Sorry for the noise.  Back to /etc/rc.local where it does work.
The other place that occurs to me is /etc/modprobe.conf which Fedora 6 did have a line for the sound maybe that is what 
is needed?

In fedora 7
[olivares@localhost ~]$ cat /etc/modprobe.conf
alias eth0 8139too
alias scsi_hostadapter sata_via
alias scsi_hostadapter1 pata_via
alias snd-card-0 snd-via82xx
options snd-card-0 index=0  
options snd-via82xx index=0  
install slamr modprobe --ignore-install ungrab-winmodem ; modprobe --ignore-install slamr; test -e /dev/slamr0 || (/bin/mknod -m 660 /dev/slamr0 c 242 0 2>/dev/null && chgrp dialout /dev/slamr0)

Fedora 6 had sound settings and only line I will put

install snd-intel8x0 /sbin/modprobe --ignore-install snd-intel8x0
&& { /usr/sbin/alsactl restore >/dev/null 2>&1 || :; }
remove snd-intel8x0 { /usr/sbin/alsactl store >/dev/null 2>&1 || :; }; /sbin/modprobe -r --ignore-remove

The /usr/sbin/alsactl restore should be replaced by /usr/sbin/salsa -l 
and the
/usr/sbin/alsactl store by /usr/sbin/salsa -s

Ideas?  

Sorry to have failed,

Antonio 





       
____________________________________________________________________________________
Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz 


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux