From 6219ce6418c7a9bae6ceb11c73a17314a984b7c7 Mon Sep 17 00:00:00 2001 From: DeliZhangX Date: Mon, 14 Aug 2017 17:53:18 +0800 Subject: CA-261230: add support NeoKylin 5.0 for alternative version (#42) Signed-off-by: Deli Zhang --- mk/xe-linux-distribution | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3