From: Mike Gilbert Date: Fri, 1 Nov 2019 14:59:24 +0000 (-0400) Subject: net-wireless/iwd: improve kernel checks X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a039614386b3d371c93b6bbc5537919fb3498568;p=gentoo.git 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 --- 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:"