net-wireless/iwd: improve kernel checks
authorMike Gilbert <floppym@gentoo.org>
Fri, 1 Nov 2019 14:59:24 +0000 (10:59 -0400)
committerBen Kohler <bkohler@gentoo.org>
Fri, 1 Nov 2019 16:22:55 +0000 (11:22 -0500)
Bug: https://bugs.gentoo.org/699042
Package-Manager: Portage-2.3.78_p4, Repoman-2.3.17_p100
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
net-wireless/iwd/iwd-9999.ebuild

index 23be63d6ea2b1ed0c7664d2309b989a75d4e5374..72992be15e1185112bd5b68291b00854409aecaa 100644 (file)
@@ -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:"