ClearOS specifics

This commit is contained in:
Thomas Bernard 2016-02-10 20:44:46 +01:00
parent 81e0ca10df
commit 42c7bf935c
1 changed files with 6 additions and 0 deletions

View File

@ -268,6 +268,12 @@ case $OS_NAME in
OS_VERSION=`cat /etc/gentoo-release` OS_VERSION=`cat /etc/gentoo-release`
OS_URL=http://www.gentoo.org/ OS_URL=http://www.gentoo.org/
fi fi
# ClearOS special case
if [ -f /etc/clearos-release ]; then
OS_NAME=ClearOS
OS_VERSION=`grep ^base_version /etc/product | awk '{ print $3 }'`
OS_URL=https://www.clearos.com/
fi
# use lsb_release (Linux Standard Base) when available # use lsb_release (Linux Standard Base) when available
LSB_RELEASE=`which lsb_release` LSB_RELEASE=`which lsb_release`
if [ 0 -eq $? ]; then if [ 0 -eq $? ]; then