summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2019-02-15 13:27:09 +0200
committerTimo Teräs <timo.teras@iki.fi>2019-02-15 13:27:43 +0200
commit74fd3c56ea44e4f2d8e050a21a91820762039212 (patch)
tree7203c8d92ac1737636e4b799b5262b19f57ad616
parentcf789724141b2a16387328ff336fe9b4aee93485 (diff)
downloadalpine-conf-74fd3c56ea44e4f2d8e050a21a91820762039212.zip
update-kernel: include regulatory database
-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##*/}"