]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Update cvo.sh for new CentOS version format
authorHarlan Stenn <stenn@ntp.org>
Tue, 23 Dec 2014 04:34:37 +0000 (04:34 +0000)
committerHarlan Stenn <stenn@ntp.org>
Tue, 23 Dec 2014 04:34:37 +0000 (04:34 +0000)
bk: 5498f0ddAB0oBaHeN6l-Wl5BGr32Rg

sntp/scripts/cvo.sh

index a8d00ef6cb4f5eb024bf2fecbfe4713c244dabab..ecd80922301f466a6e1b2bcedb23c1f4ac2e82a5 100755 (executable)
@@ -45,7 +45,13 @@ case "$#" in
            set `cat /etc/redhat-release`
            case "$1" in
             CentOS)
-               CVO_OS=centos$3
+               case "$2" in
+                Linux)
+                   CVO_OS=centos$4
+                   ;;
+                *) CVO_OS=centos$3
+                   ;;
+               esac
                ;;
             Fedora)
                CVO_OS=fedora$3