]> git.alsa-project.org Git - alsa-utils.git/commitdiff
- use the bindir and sbindir set by configure script.
authorTakashi Iwai <tiwai@suse.de>
Tue, 10 Feb 2004 15:58:51 +0000 (15:58 +0000)
committerTakashi Iwai <tiwai@suse.de>
Tue, 10 Feb 2004 15:58:51 +0000 (15:58 +0000)
alsaconf/alsaconf.in

index 041ba714e547ea24834f972ce1061795a1d711c0..70daab70c24a22c6fa2c425489899bb3fc5846a9 100644 (file)
 #  (at your option) any later version.
 #
 
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+bindir=@bindir@
+sbindir=@sbindir@
 version=@VERSION@
 
 # Check for GNU/Linux distributions
@@ -618,8 +622,8 @@ BEGIN { in_sound=0; }
     echo Loading driver...
     $rcalsasound start
     echo Setting default volumes...
-    if [ -x /usr/bin/set_default_volume ]; then
-       /usr/bin/set_default_volume -f
+    if [ -x $bindir/set_default_volume ]; then
+       $bindir/set_default_volume -f
     else
        set_mixers
     fi
@@ -640,7 +644,7 @@ If you have a big amplifier, lower your volumes or say no.
     fi
     if [ ! -r /etc/asound.state ]; then
        echo "Saving the mixer setup used for this in /etc/asound.state."
-       /usr/sbin/alsactl store
+       $sbindir/alsactl store
     fi
     cat <<END
 ===============================================================================