summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeliZhangX <deli.zhang@citrix.com>2017-08-14 17:53:18 +0800
committerCheng Zhang <cheng.zhang@citrix.com>2017-08-14 17:53:18 +0800
commit6219ce6418c7a9bae6ceb11c73a17314a984b7c7 (patch)
tree7dd3de12fb66b3ea55a4faf6c021201e367d7089
parentf73b7a9befedf30494dae551573378a9782f627d (diff)
downloadvyos-xe-guest-utilities-6219ce6418c7a9bae6ceb11c73a17314a984b7c7.tar.gz
vyos-xe-guest-utilities-6219ce6418c7a9bae6ceb11c73a17314a984b7c7.zip
CA-261230: add support NeoKylin 5.0 for alternative version (#42)v7.9.0
Signed-off-by: Deli Zhang <Deli.Zhang@citrix.com>
-rwxr-xr-xmk/xe-linux-distribution3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/xe-linux-distribution b/mk/xe-linux-distribution
index b48c511..b10d343 100755
--- a/mk/xe-linux-distribution
+++ b/mk/xe-linux-distribution
@@ -287,6 +287,7 @@ identify_kylin()
# distro
# NeoKylin Linux Security OS V5.0 (Update8)
+ # Neokylin Linux Security OS Server release V5 (Santiago)
# NeoKylin Linux Advanced Server release 6.5 (Berryllium)
# NeoKylin Linux Advanced Server release 7.0
@@ -295,7 +296,7 @@ identify_kylin()
fi
eval $(sed -rn \
- 's/^NeoKylin Linux.*([0-9]+)\.([0-9]+).*$/distro=neokylin;major=\1;minor=\2;/gp;' \
+ 's/^Neo[kK]ylin Linux[^0-9]+([0-9]+)\.?([0-9]+)?.*$/distro=neokylin;major=\1;minor=\2;/gp;' \
"${kylin_release}")
if [ -z "${major}" -o -z "${distro}" ] ; then