This commit is contained in:
Konstantinos
2017-04-20 16:59:19 +03:00
parent 0be63f3b58
commit 5a67380fd7

View File

@@ -721,7 +721,9 @@ detectdistro () {
pardus pclinuxos redhat redstar rosa SuSe; do
if [ -f /etc/$di-release ]; then distro=$di && break; fi
done
if [[ "${distro}" == "gentoo" ]]; then
if [[ "${distro}" == "crunchbang-lsb" ]]; then
distro == "Crunchbang"
elif [[ "${distro}" == "gentoo" ]]; then
grep -q "Funtoo" /etc/gentoo-release && distro="Funtoo"
elif [[ "${distro}" == "mandrake" ]] || [[ "${distro}" == "mandriva" ]]; then
grep -q "PCLinuxOS" /etc/${distro}-release && distro="PCLinuxOS"