]> git.pld-linux.org Git - packages/alsa-utils.git/commitdiff
- hardcode alsactl path
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 17 Sep 2006 16:11:53 +0000 (16:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    alsasound.init -> 1.14

alsasound.init

index 5915b620d07dffa1b10eaeb1df28eb869e37b0aa..9ce5c49e5d0d343eb428916346be250b8dc05dd8 100644 (file)
@@ -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 @@ driver_start()
   #
   # 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 @@ driver_start()
          sleep 1
        done
       fi
-      $alsactl restore
+      /usr/sbin/alsactl restore
     fi
   else
     show "ERROR: alsactl not found"; fail
@@ -98,8 +96,8 @@ driver_stop()
   #
   # 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
This page took 0.045844 seconds and 4 git commands to generate.