]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsaconf: add Slackware support
authorClemens Ladisch <clemens@ladisch.de>
Mon, 10 Nov 2008 08:23:07 +0000 (09:23 +0100)
committerClemens Ladisch <clemens@ladisch.de>
Mon, 10 Nov 2008 08:23:07 +0000 (09:23 +0100)
Add Slackware support.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
alsaconf/alsaconf.in

index f72f12b23ef2361114aa58460441359c702c7cdb..47d6da555979d4c22b83f142d66646b68424ff42 100644 (file)
@@ -65,6 +65,8 @@ elif test -f /etc/redhat-release && grep -q "Red Hat" /etc/redhat-release; then
   distribution="redhat"
 elif test -f /etc/fedora-release && grep -q "Fedora" /etc/fedora-release; then
   distribution="fedora"
+elif [ -f /etc/slackware-version -o -f /etc/slamd64-version ]; then
+  distribution="slackware"
 else
   distribution="unknown"
 fi
@@ -490,6 +492,8 @@ acex() {
 
 if [ "$distribution" = "debian" ]; then
     rcalsasound=/etc/init.d/alsa
+elif [ -x /etc/rc.d/rc.alsa ]; then
+    rcalsasound=/etc/rc.d/rc.alsa
 elif [ -x /etc/init.d/alsasound ]; then
     rcalsasound=/etc/init.d/alsasound
 elif [ -x /usr/sbin/rcalsasound ]; then