From e9c5b5100cd5a78aabaf1dcde90a4e72b0975d0a Mon Sep 17 00:00:00 2001
From: Robert Nelson <robertcnelson@gmail.com>
Date: Sun, 17 Mar 2019 19:05:29 -0500
Subject: [PATCH] scripts: sync with master of:
 https://github.com/RobertCNelson/stable-kernel.git

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
---
 tools/host_det.sh | 14 ++++++++++++++
 version.sh        |  2 +-
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/tools/host_det.sh b/tools/host_det.sh
index 0d5c1b35a..8d7eb4da1 100755
--- a/tools/host_det.sh
+++ b/tools/host_det.sh
@@ -206,6 +206,20 @@ debian_regs () {
 			fi
 		fi
 
+		if [ "x${deb_distro}" = "xunstable" ] ; then
+			echo "+ Warning: [lsb_release -cs] just returned [unstable], so now testing [lsb_release -is] instead..."
+			deb_lsb_is=$(lsb_release -is | awk '{print $1}')
+
+			#lsb_release -a
+			#Distributor ID: Deepin
+			#Description:    Deepin 15.9.2
+			#Release:        15.9.2
+			#Codename:       unstable
+			if [ "x${deb_lsb_is}" = "xDeepin" ] ; then
+				deb_distro="stretch"
+			fi
+		fi
+
 		if [ "x${deb_distro}" = "xluna" ] ; then
 			#http://distrowatch.com/table.php?distribution=elementary
 			#lsb_release -a
diff --git a/version.sh b/version.sh
index 86085d10f..118d2c05e 100644
--- a/version.sh
+++ b/version.sh
@@ -37,7 +37,7 @@ kernel_rt=".X-rtY"
 #Kernel Build
 BUILD=${build_prefix}3
 
-#v4.X-rcX + upto SHA
+#v5.X-rcX + upto SHA
 #prev_KERNEL_SHA=""
 #KERNEL_SHA=""
 
-- 
GitLab