]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 1644]: cvo.sh should use lsb_release to identify linux distros.
authorHarlan Stenn <stenn@ntp.org>
Thu, 30 Sep 2010 04:14:03 +0000 (00:14 -0400)
committerHarlan Stenn <stenn@ntp.org>
Thu, 30 Sep 2010 04:14:03 +0000 (00:14 -0400)
bk: 4ca40e8biwQo4SmDrxeoezP0NeLHfw

ChangeLog
scripts/cvo.sh

index e405a336c4872056f4ff92a084d231a0cbd37ba3..2b0538378ab67640a4883e6626fd92705e3e1f7f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 ---
+
 * [Bug 1643]: Range-check the decoding of the RIPE-NCC status codes.
+* [Bug 1644]: cvo.sh should use lsb_release to identify linux distros.
 
 ---
 (4.2.6p3-RC2) 2010/09/25 Released by Harlan Stenn <stenn@ntp.org>
index e0932bf6a78c8848fb133cae701cbcbb568fac70..a8d00ef6cb4f5eb024bf2fecbfe4713c244dabab 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# Copyright 2002, 2009, Harlan Stenn.  Used by NTP with permission.
+# Copyright 2002, 2009, 2010 Harlan Stenn.  Used by NTP with permission.
 # Author: Harlan Stenn <harlan+cvo@pfcs.com>
 
 # Possible output formats:
@@ -26,9 +26,10 @@ case "$#" in
     CVO_OS=$4
     case "$cvo_KERN" in
      linux)                    # Braindamage.  We want OS, not kernel info
-       if false
+       if lsb_release > /dev/null 2>&1
        then
-           :
+           CVO_OS=`lsb_release --id --short | tr '[:upper:]' '[:lower:]'`
+           CVO_OS="$CVO_OS`lsb_release --release --short`"
        elif test -f /etc/debian_version
        then
            set `cat /etc/debian_version`