Re: completely disable PC speaker?

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

 



On Sat, 07 Jun 2003, 10:37:57 +0200, Manfred Hollstein wrote:
> On Sat, 07 Jun 2003, 02:03:32 +0200, James Ralston wrote:
> [...]
> > The most glaring example is that I can't find any way to prevent the
> > system from beeping when inserting or removing PCMCIA cards.  :(
> 
> That's easy. Just apply the attached patch ;-) Another issue
> which bugged me initially is in the pcmcia start script; it's
> calling insmod like it does with calling modprobe, but insmod
> needs the full pathname... fixed by the second patch.

Oops. It's obviously the other way round... modprobe doesn't
like a '.o' tagged to the module name, so the patch actually
reverts it to how it was done before in RHL 8.0. The second chunk
helps to silence the segv, which happenend on my system.

> --- ./etc/rc.d/init.d/pcmcia.orig	2003-01-25 14:47:27.000000000 +0100
> +++ ./etc/rc.d/init.d/pcmcia	2003-05-24 20:31:26.000000000 +0200
> @@ -104,9 +104,9 @@ for x in "1" ; do
>  	    KD=/lib/modules/`uname -r`/kernel/drivers/pcmcia
>  	    if [ -d $PC ] ; then
>  		echo -n " modules"
> -		/sbin/modprobe pcmcia_core.o $CORE_OPTS
> -		/sbin/modprobe $PCIC.o $PCIC_OPTS
> -		/sbin/modprobe ds.o
> +		/sbin/insmod $PC/pcmcia_core.o $CORE_OPTS
> +		/sbin/insmod $PC/$PCIC.o $PCIC_OPTS
> +		/sbin/insmod $PC/ds.o
>  	    elif [ -d $KD ] ; then
>  		/sbin/modprobe pcmcia_core
>  		/sbin/modprobe $PCIC
> @@ -153,7 +153,7 @@ for x in "1" ; do
>  
>  	# we do this because when we stop the service, the ide stop script
>  	# gets run before the card disappears
> -	/usr/sbin/updfstab
> +	{ /usr/sbin/updfstab; } > /dev/null 2> /dev/null
>  	EXITCODE=0
>  	;;
>  

HTH, cheers.

l8er
manfred




[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux