Arch Linux support
This commit is contained in:
@@ -3,6 +3,14 @@
|
|||||||
DISTNAME=unknown
|
DISTNAME=unknown
|
||||||
DISTVER=
|
DISTVER=
|
||||||
|
|
||||||
|
if [ -f /etc/os-release ]; then
|
||||||
|
. /etc/os-release
|
||||||
|
if [ "$ID" == "arch" ]; then
|
||||||
|
DISTNAME=arch
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "DISTNAME" = "unknown" ]; then
|
||||||
if [ -f /etc/solus-release ]; then
|
if [ -f /etc/solus-release ]; then
|
||||||
DISTNAME=solus
|
DISTNAME=solus
|
||||||
elif [ -f /etc/lsb-release ]; then
|
elif [ -f /etc/lsb-release ]; then
|
||||||
@@ -29,5 +37,6 @@ elif [ -f /etc/debian_version ]; then
|
|||||||
DISTNAME=debian
|
DISTNAME=debian
|
||||||
DISTVER=$(head -1 /etc/debian_version|awk -F. '{print $1}')
|
DISTVER=$(head -1 /etc/debian_version|awk -F. '{print $1}')
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
echo ${DISTNAME}${DISTVER}
|
echo ${DISTNAME}${DISTVER}
|
||||||
|
|||||||
Reference in New Issue
Block a user