diff options
author | Cy Schubert <cy@FreeBSD.org> | 2024-05-10 15:15:56 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2024-05-26 22:55:52 +0000 |
commit | 1f833b3fc9968c3dd7ed79ccf0525ebf16c891ad (patch) | |
tree | 85801af20e3b694584668aeb39ecec75ee71f72c /sntp/scripts/cvo.sh | |
parent | ab1f1aa8333369a83ff284848fc3fc2e52d5f29f (diff) |
Diffstat (limited to 'sntp/scripts/cvo.sh')
-rwxr-xr-x | sntp/scripts/cvo.sh | 8 |
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`" |