Solus Linux detection

This commit is contained in:
Scott E. Graves
2019-04-07 02:56:37 -05:00
parent 0e58e9fa65
commit 978e5d0415
5 changed files with 81 additions and 5 deletions

17
public/detect_linux.sh Normal file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
DISTNAME=unknown
DISTVER=
if [ -f /etc/solus-release ]; then
DISTNAME=solus
elif [ -f /etc/lsb-release ]; then
. /etc/lsb-release
DISTNAME=$(echo ${DISTRIB_ID} | awk '{print tolower($0)}')
DISTVER=${DISTRIB_RELEASE}
elif [ -f /etc/debian_version ]; then
DISTNAME=debian
DISTVER=$(head -1 /etc/debian_version)
fi
echo ${DISTNAME}${DISTVER}