getDistribution(): added detection for slackware and gentoo
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sun, 27 Jun 2004 13:05:29 +0000 (13:05 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sun, 27 Jun 2004 13:05:29 +0000 (13:05 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1598 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vserver-build.functions

index fcde3fa..b3de22d 100644 (file)
@@ -130,6 +130,12 @@ function getDistribution
     elif test -e /etc/SuSE-release; then
        set -- $(cat /etc/SuSE-release)
        DISTRIBUTION=suse$3
+    elif test -e /etc/gentoo-release; then
+       set -- $(cat /etc/gentoo-release)
+       DISTRIBUTION=gentoo$5
+    elif test -e /etc/slackware-release; then
+       set -- $(cat /etc/slackware-release)
+       DISTRIBUTION=slackware$2
     else
        echo \
 "Can not determine distribution; please specify it manually