18 lines
366 B
Bash
18 lines
366 B
Bash
#!/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}
|