Also, a small patch to the init script is needed:

--- /etc/init.d/alsa.orig       2005-07-05 10:23:00.000000000 +0200
+++ /etc/init.d/alsa    2005-07-05 10:23:48.000000000 +0200
@@ -510,17 +509,19 @@ load_unloaded_modules()
        return $LUM_RETURNSTATUS
 }
 
+CARDNUM=${2#controlC}
+
 case "$1" in
   start)
-       start $2 || exit $?
+       start $CARDNUM || exit $?
        ;;
   stop)
-       stop $2 || exit $?
+       stop $CARDNUM || exit $?
        ;;
   restart)
        EXITSTATUS=0
-       stop $2 || EXITSTATUS=1
-       start $2 || EXITSTATUS=1
+       stop $CARDNUM || EXITSTATUS=1
+       start $CARDNUM || EXITSTATUS=1
        exit $EXITSTATUS
        ;;
   unload)

-- 
ciao,
Marco

Attachment: signature.asc
Description: Digital signature

Reply via email to