aboutsummaryrefslogtreecommitdiff
path: root/sntp/scripts/cvo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sntp/scripts/cvo.sh')
-rwxr-xr-xsntp/scripts/cvo.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/sntp/scripts/cvo.sh b/sntp/scripts/cvo.sh
index ecd80922301f..77a161172499 100755
--- a/sntp/scripts/cvo.sh
+++ b/sntp/scripts/cvo.sh
@@ -26,7 +26,13 @@ case "$#" in
CVO_OS=$4
case "$cvo_KERN" in
linux) # Braindamage. We want OS, not kernel info
- if lsb_release > /dev/null 2>&1
+ if test -f /etc/os-release
+ then
+ . /etc/os-release
+ ID=`echo $ID | tr '-' '_'`
+ CVO_OS="${ID}${VERSION_ID}"
+ CVO_KOSVER=`uname -r`
+ elif lsb_release > /dev/null 2>&1
then
CVO_OS=`lsb_release --id --short | tr '[:upper:]' '[:lower:]'`
CVO_OS="$CVO_OS`lsb_release --release --short`"