SOURCES: alsasound.init - hardcode alsactl path

glen glen at pld-linux.org
Sun Sep 17 18:11:59 CEST 2006


Author: glen                         Date: Sun Sep 17 16:11:59 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- hardcode alsactl path

---- Files affected:
SOURCES:
   alsasound.init (1.13 -> 1.14) 

---- Diffs:

================================================================
Index: SOURCES/alsasound.init
diff -u SOURCES/alsasound.init:1.13 SOURCES/alsasound.init:1.14
--- SOURCES/alsasound.init:1.13	Sun Sep 17 18:10:44 2006
+++ SOURCES/alsasound.init	Sun Sep 17 18:11:53 2006
@@ -30,8 +30,6 @@
 # Source function library.
 . /etc/rc.d/init.d/functions
 
-alsactl=/usr/sbin/alsactl
-
 if [ $(kernelverser) = "002006" ]; then
 	MODULES_CONF=/etc/modprobe.conf
 elif [ -r /etc/modules.conf ]; then
@@ -68,7 +66,7 @@
   #
   # restore driver settings
   #
-  if [ -x $alsactl ]; then
+  if [ -x /usr/sbin/alsactl ]; then
     if [ -f /etc/asound.state ]; then
       if [ "$(kernelver)" -lt "002006012" ]; then
 	for i in 1 2 3 4; do
@@ -76,7 +74,7 @@
 	  sleep 1
 	done
       fi
-      $alsactl restore
+      /usr/sbin/alsactl restore
     fi
   else
     show "ERROR: alsactl not found"; fail
@@ -98,8 +96,8 @@
   #
   # store driver settings
   #
-  if [ -x $alsactl ]; then
-    $alsactl store
+  if [ -x /usr/sbin/alsactl ]; then
+    /usr/sbin/alsactl store
   else
     show '!!!alsactl not found!!!'; fail
   fi
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/alsasound.init?r1=1.13&r2=1.14&f=u



More information about the pld-cvs-commit mailing list