summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Xie <xiewei.fire@gmail.com>2017-07-31 05:24:31 -0500
committerGitHub <noreply@github.com>2017-07-31 05:24:31 -0500
commitf73b7a9befedf30494dae551573378a9782f627d (patch)
tree5fcce690d7e5687f3d440c56b2dad97163d041d9
parent750ac8acee490d7ffde4fbdaa38abbf82285bd1d (diff)
parentb3bd51875e894a4454a3888c7c68697f94557df6 (diff)
downloadvyos-xe-guest-utilities-f73b7a9befedf30494dae551573378a9782f627d.tar.gz
vyos-xe-guest-utilities-f73b7a9befedf30494dae551573378a9782f627d.zip
Merge pull request #40 from xenserver/feature/new-linux-guest/masterv7.8.0
add support NeoKylin 5.0 (Update8)
-rwxr-xr-xmk/xe-linux-distribution7
1 files changed, 4 insertions, 3 deletions
diff --git a/mk/xe-linux-distribution b/mk/xe-linux-distribution
index dccb7f4..b48c511 100755
--- a/mk/xe-linux-distribution
+++ b/mk/xe-linux-distribution
@@ -286,16 +286,17 @@ identify_kylin()
local minor
# distro
+ # NeoKylin Linux Security OS V5.0 (Update8)
# NeoKylin Linux Advanced Server release 6.5 (Berryllium)
# NeoKylin Linux Advanced Server release 7.0
if [ ! -f "${kylin_release}" ] ; then
- return 1
+ return 1
fi
eval $(sed -rn \
- 's/^NeoKylin Linux Advanced Server release V*([0-9]*)[^0-9]*([0-9]*).*$/distro=neokylin;major=\1;minor=\2;/gp;' \
- "${kylin_release}")
+ 's/^NeoKylin Linux.*([0-9]+)\.([0-9]+).*$/distro=neokylin;major=\1;minor=\2;/gp;' \
+ "${kylin_release}")
if [ -z "${major}" -o -z "${distro}" ] ; then
return 1