]> git.alsa-project.org Git - alsa-utils.git/commitdiff
More compatible tests
authorJaroslav Kysela <perex@perex.cz>
Fri, 5 Dec 2003 13:13:00 +0000 (13:13 +0000)
committerJaroslav Kysela <perex@perex.cz>
Fri, 5 Dec 2003 13:13:00 +0000 (13:13 +0000)
alsaconf/alsaconf.in

index 00a4a3afb082f959b2675acb5456dd468bfca27c..041ba714e547ea24834f972ce1061795a1d711c0 100644 (file)
@@ -26,9 +26,9 @@ elif [ -f /etc/debian_version ]; then
   distribution="debian"
 elif [ -f /etc/mandrake-release ]; then
   distribution="mandrake"
-elif [ -f /etc/redhat-release -a `grep -c "Red Hat" /etc/redhat-release 2>/dev/null` != 0 ]; then
+elif [ -f /etc/redhat-release -a `grep -c "Red Hat" /etc/redhat-release 2>/dev/null` -ne 0 ]; then
   distribution="redhat"
-elif [ -f /etc/fedora-release -a `grep -c "Fedora" /etc/fedora-release 2>/dev/null` != 0 ]; then
+elif [ -f /etc/fedora-release -a `grep -c "Fedora" /etc/fedora-release 2>/dev/null` -ne 0 ]; then
   distribution="fedora"
 else
   distribution="unknown"