summaryrefslogtreecommitdiff
path: root/update-kernel.in
diff options
context:
space:
mode:
Diffstat (limited to 'update-kernel.in')
-rw-r--r--update-kernel.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/update-kernel.in b/update-kernel.in
index 94458e1..eeb0716 100644
--- a/update-kernel.in
+++ b/update-kernel.in
@@ -295,8 +295,15 @@ for _xfw in "$modloopfw"; do
fi
done
+# wireless regulatory db
+if [ -e "$ROOT"/lib/modules/*/kernel/net/wireless/cfg80211.ko ]; then
+ for _regdb in "$ROOT"/lib/firmware/regulatory.db*; do
+ [ -e "$_regdb" ] && install -pD "$_regdb" "$MODLOOP"/modules/firmware/"${_regdb##*/}"
+ done
+fi
+
# include bluetooth firmware in modloop
-if [ -d "$MODLOOP/modules/firmware/brcm" ]; then
+if [ -e "$ROOT"/lib/modules/*/kernel/drivers/bluetooth/btbcm.ko ]; then
for _btfw in "$ROOT"/lib/firmware/brcm/*.hcd; do
install -pD "$_btfw" \
"$MODLOOP"/modules/firmware/brcm/"${_btfw##*/}"