From 80b8fc8be4070f04939dee0e25b9929214e27fdb Mon Sep 17 00:00:00 2001 From: Hector Palacios Date: Tue, 4 Jun 2019 17:56:44 +0200 Subject: [PATCH] kernel-module-qualcomm: don't run if 'wireless' node missing on DT We want to run the script if the 'wireless' node exits on the device tree. This is to facilitate disabling of the wireless by removing that node. Signed-off-by: Hector Palacios https://jira.digi.com/browse/DEL-6616 --- .../kernel-module-qualcomm/kernel-module-qualcomm/qualcomm.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-digi-arm/recipes-kernel/kernel-module-qualcomm/kernel-module-qualcomm/qualcomm.sh b/meta-digi-arm/recipes-kernel/kernel-module-qualcomm/kernel-module-qualcomm/qualcomm.sh index 21a0aaac0..51d163a34 100644 --- a/meta-digi-arm/recipes-kernel/kernel-module-qualcomm/kernel-module-qualcomm/qualcomm.sh +++ b/meta-digi-arm/recipes-kernel/kernel-module-qualcomm/kernel-module-qualcomm/qualcomm.sh @@ -21,6 +21,9 @@ log() { printf "<$1>qca6564: $2\n" >/dev/kmsg } +# Do nothing if the wireless node does not exist on the device tree +[ -d "/proc/device-tree/wireless" ] || exit 0 + # Do nothing if the module is already loaded grep -qws 'wlan' /proc/modules && exit 0