Arch Linux support

This commit is contained in:
Scott E. Graves
2019-04-18 12:01:00 -05:00
parent 600c81acce
commit 1fcf87ec25

View File

@@ -3,31 +3,40 @@
DISTNAME=unknown DISTNAME=unknown
DISTVER= DISTVER=
if [ -f /etc/solus-release ]; then if [ -f /etc/os-release ]; then
DISTNAME=solus . /etc/os-release
elif [ -f /etc/lsb-release ]; then if [ "$ID" == "arch" ]; then
. /etc/lsb-release DISTNAME=arch
DISTNAME=$(echo ${DISTRIB_ID} | awk '{print tolower($0)}') fi
DISTVER=${DISTRIB_RELEASE} fi
if [ "$DISTNAME" != "ubuntu" ]; then
if [ "$DISTNAME" = "linuxmint" ]; then if [ "DISTNAME" = "unknown" ]; then
if [ "$DISTVER" = "19" ] || [ "$DISTVER" = "19.1" ]; then if [ -f /etc/solus-release ]; then
DISTNAME=ubuntu DISTNAME=solus
DISTVER=18.04 elif [ -f /etc/lsb-release ]; then
fi . /etc/lsb-release
elif [ "$DISTNAME" = "elementary" ]; then DISTNAME=$(echo ${DISTRIB_ID} | awk '{print tolower($0)}')
if [ "$DISTVER" = "5.0" ]; then DISTVER=${DISTRIB_RELEASE}
DISTNAME=ubuntu if [ "$DISTNAME" != "ubuntu" ]; then
DISTVER=18.04 if [ "$DISTNAME" = "linuxmint" ]; then
fi if [ "$DISTVER" = "19" ] || [ "$DISTVER" = "19.1" ]; then
else DISTNAME=ubuntu
DISTNAME=unknown DISTVER=18.04
DISTVER= fi
fi elif [ "$DISTNAME" = "elementary" ]; then
if [ "$DISTVER" = "5.0" ]; then
DISTNAME=ubuntu
DISTVER=18.04
fi
else
DISTNAME=unknown
DISTVER=
fi
fi
elif [ -f /etc/debian_version ]; then
DISTNAME=debian
DISTVER=$(head -1 /etc/debian_version|awk -F. '{print $1}')
fi fi
elif [ -f /etc/debian_version ]; then
DISTNAME=debian
DISTVER=$(head -1 /etc/debian_version|awk -F. '{print $1}')
fi fi
echo ${DISTNAME}${DISTVER} echo ${DISTNAME}${DISTVER}