http://qa.mandrakesoft.com/show_bug.cgi?id=4491

           Product: initscripts
         Component: program
           Summary: /etc/init.d/sound doesn't work anymore (fix provided)
           Product: initscripts
           Version: 7.06-16mdk
          Platform: PC
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: program
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Here is a fix to make /etc/init.d/sound work again (variable module was always 
empty !) : 
 
--- /etc/init.d/sound.bak       2003-08-01 15:50:20.000000000 +0200 
+++ /etc/init.d/sound   2003-08-04 19:50:58.000000000 +0200 
@@ -40,7 +40,7 @@ 
     phrase=$1 
     alias=$2 
     [ -n "$3" ] && opt="-r" 
-    /sbin/modprobe -c | module=`egrep -s "^alias( |\t)+"$alias"( |\t)+" | awk 
'{ print $3 }'` 
+    module=`/sbin/modprobe -c | egrep -s "^alias( |\t)+"$alias"( |\t)+" | awk 
'{ print $3 }'` 
     if [ -n "$module" ] && [ "$module" != "off" ];then 
        action "$phrase ($module)" modprobe "$opt" $module 
        return $?

-- 
Configure bugmail: http://qa.mandrakesoft.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

Reply via email to