From b37d63a481a617ea80e8ad248a1e8af60f84b927 Mon Sep 17 00:00:00 2001 From: useful64 <63966879+useful64@users.noreply.github.com> Date: Fri, 1 May 2020 08:57:01 +0200 Subject: [PATCH] Enable user overlays on rockchip64 based boards (#1931) User overlays are working fine on this boards (I have already tested on rock64). Added the possibility to use on rockchip64 based boards. Changed "if" to "case" to facilitate adding more supported boards. --- packages/bsp/common/usr/sbin/armbian-add-overlay | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/bsp/common/usr/sbin/armbian-add-overlay b/packages/bsp/common/usr/sbin/armbian-add-overlay index dfac4c15fc..c8b0c2b997 100755 --- a/packages/bsp/common/usr/sbin/armbian-add-overlay +++ b/packages/bsp/common/usr/sbin/armbian-add-overlay @@ -35,10 +35,14 @@ fi . /etc/armbian-release -if [[ $LINUXFAMILY != sunxi && $LINUXFAMILY != sunxi64 ]]; then - echo >&2 "Overlays are supported only on A10, A20, H3, H5 and A64 based boards" - exit -1 -fi +case "${LINUXFAMILY}" in + sunxi|sunxi64|rockchip64) + :;; + *) + echo >&2 "Overlays are not supported on ${LINUXFAMILY^} based boards." + exit -1 + ;; +esac if [[ -d /lib/modules/$(uname -r)/build/scripts/dtc ]]; then if [[ ! -x /lib/modules/$(uname -r)/build/scripts/dtc/dtc ]]; then