From 021bc9d29d97a97be14b2806cc1ff448d2767810 Mon Sep 17 00:00:00 2001 From: Isaac Hermida Date: Fri, 24 Jun 2016 13:36:27 +0200 Subject: [PATCH] kernel-module-qualcomm: qualcomm-pre-up: compatibility improvement for modprobe The root filesystem can have installed the busybox modprobe implementation or the kmod modprobe implementation. Check the version installed and compound the modprobe arguments. Signed-off-by: Isaac Hermida --- .../kernel-module-qualcomm/qualcomm-pre-up | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta-digi-arm/recipes-kernel/kernel-module-qualcomm/kernel-module-qualcomm/qualcomm-pre-up b/meta-digi-arm/recipes-kernel/kernel-module-qualcomm/kernel-module-qualcomm/qualcomm-pre-up index 958516ea8..f9f4e232d 100644 --- a/meta-digi-arm/recipes-kernel/kernel-module-qualcomm/kernel-module-qualcomm/qualcomm-pre-up +++ b/meta-digi-arm/recipes-kernel/kernel-module-qualcomm/kernel-module-qualcomm/qualcomm-pre-up @@ -49,8 +49,12 @@ if ! cmp -s ${TMP_MACFILE} ${MACFILE}; then fi rm -f ${TMP_MACFILE} +# Check the version of modprobe installed to compound the arguments. +if readlink -f $(which modprobe) | grep -qs kmod; then + MODPROBE_ARGS="-i" +fi # Load the wireless module with the params defined in modprobe.d/qualcomm.conf -modprobe wlan +modprobe ${MODPROBE_ARGS} wlan # Validate that firmware was loaded by checking if the interface is present. if [ -d "/sys/class/net/${IFACE}" ]; then