]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 1644]: cvo.sh doesn't handle some unstable/testing linux distros
authorHarlan Stenn <stenn@ntp.org>
Mon, 27 Sep 2010 05:33:39 +0000 (01:33 -0400)
committerHarlan Stenn <stenn@ntp.org>
Mon, 27 Sep 2010 05:33:39 +0000 (01:33 -0400)
bk: 4ca02cb3-fvQQ_Wd4uQdpHRIARheQg

ChangeLog
scripts/cvo.sh

index e405a336c4872056f4ff92a084d231a0cbd37ba3..069209928029994765dcff9dfb1f049fed4d9bf1 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 doesn't handle some unstable/testing 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`