From a039614386b3d371c93b6bbc5537919fb3498568 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Fri, 1 Nov 2019 10:59:24 -0400 Subject: [PATCH] net-wireless/iwd: improve kernel checks Bug: https://bugs.gentoo.org/699042 Package-Manager: Portage-2.3.78_p4, Repoman-2.3.17_p100 Signed-off-by: Mike Gilbert Signed-off-by: Ben Kohler --- net-wireless/iwd/iwd-9999.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net-wireless/iwd/iwd-9999.ebuild b/net-wireless/iwd/iwd-9999.ebuild index 23be63d6ea2b..72992be15e11 100644 --- a/net-wireless/iwd/iwd-9999.ebuild +++ b/net-wireless/iwd/iwd-9999.ebuild @@ -86,8 +86,8 @@ pkg_pretend() { check_extra_config if ! use crda; then - if [[ $(getfilevar CONFIG_CFG80211 /usr/src/linux/.config) == y ]] \ - && [[ $(getfilevar CONFIG_EXTRA_FIRMWARE /usr/src/linux/.config) != *regulatory.db* ]] + if linux_config_exists && linux_chkconfig_builtin CFG80211 && + [[ $(linux_chkconfig_string EXTRA_FIRMWARE) != *regulatory.db* ]] then ewarn "" ewarn "REGULATORY DOMAIN PROBLEM:" -- 2.26.2