Author: patrys                       Date: Mon Nov  5 14:08:30 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- patch by qwiat
- work around rc-scripts checking for lock file before stopping services

---- Files affected:
SOURCES:
   alsa-udev.init (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/alsa-udev.init
diff -u SOURCES/alsa-udev.init:1.1 SOURCES/alsa-udev.init:1.2
--- SOURCES/alsa-udev.init:1.1  Wed Dec 21 21:25:46 2005
+++ SOURCES/alsa-udev.init      Mon Nov  5 15:08:25 2007
@@ -30,7 +30,7 @@
 . /etc/rc.d/init.d/functions
 
 alsactl=/usr/sbin/alsactl
-
+subsyslock=var/lock/subsys/alsa-udev
 detect_stop()
 {
   #
@@ -57,12 +57,12 @@
 # See how we were called.
 case "$1" in
   start)
-       #Not Needed, its for udev
+       touch $subsyslock
        ;;
   stop)
        # Stop daemons.
        if [ -d /proc/asound ]; then
-               show "Shutting down sound driver:"
+               show "Shutting down sound driver"
                busy
                if [ -f /proc/asound/detect ]; then
                        detect_stop
@@ -70,6 +70,7 @@
                        driver_stop
                fi
                (rmmod isapnp; rmmod soundcore) 2> /dev/null
+               [ -f $subsyslock ] && rm $subsyslock
                ok
        else
                msg_not_running "ALSA driver"
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/alsa-udev.init?r1=1.1&r2=1.2&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to