From 35bc08973c331333faf7b15ddecccbfd1e62515c Mon Sep 17 00:00:00 2001 From: Hin-Tak Leung Date: Thu, 13 Aug 2020 16:20:25 +0100 Subject: [PATCH] likely v5 kernels behave like late 4.x, regarding dynamic dtoverlay; untested, and possibly revisit. --- seeed-voicecard | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seeed-voicecard b/seeed-voicecard index aee52d9..1ae7e27 100755 --- a/seeed-voicecard +++ b/seeed-voicecard @@ -127,7 +127,7 @@ if [ "$overlay" ]; then # TODO: dynamic dtoverlay Bug of v4.19.x # no DT node phandle inserted. - if [[ "$kernel_ver" =~ ^4\.19.*$ ]]; then + if [[ "$kernel_ver" =~ ^4\.19.*$ || "$kernel_ver" =~ ^5\.*$ ]]; then for i in $RPI_HATS; do if [ "$i" == "$overlay" ]; then do_overlay $overlay 0