From 6f0b8a735674678d9aae35d8df1dc979beeadb17 Mon Sep 17 00:00:00 2001 From: Arturo Buzarra Date: Wed, 19 Jul 2017 08:51:28 +0200 Subject: [PATCH] kernel-module-qualcomm: reduce console log level to load wireless module At the point this script is running from udev (the system log is not yet available), so to avoid debug messages from qualcomm wireless module reduce the console log level. https://jira.digi.com/browse/DEL-4570 Signed-off-by: Arturo Buzarra --- .../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 71d81f3d5..42a40c3b8 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 @@ -100,6 +100,9 @@ esac ) # Load the wireless module with the params defined in modprobe.d/qualcomm.conf +# and reduce the console log level to avoid debug messages at boot time +LOGLEVEL="$(sed -ne 's,^kernel.printk[^=]*=[[:blank:]]*\(.*\)$,\1,g;T;p' /etc/sysctl.conf 2>/dev/null)" +[ -n "${LOGLEVEL}" ] && sysctl -q -w kernel.printk="${LOGLEVEL}" modprobe wlan # Verify the interface is present