From 42c7bf935ce7a47102bfcea025f9fca10035bc8f Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Wed, 10 Feb 2016 20:44:46 +0100 Subject: [PATCH] ClearOS specifics --- miniupnpd/genconfig.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/miniupnpd/genconfig.sh b/miniupnpd/genconfig.sh index 94510d1..3584df1 100755 --- a/miniupnpd/genconfig.sh +++ b/miniupnpd/genconfig.sh @@ -268,6 +268,12 @@ case $OS_NAME in OS_VERSION=`cat /etc/gentoo-release` OS_URL=http://www.gentoo.org/ 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 LSB_RELEASE=`which lsb_release` if [ 0 -eq $? ]; then