Commit 9d2189d2 authored by Timo Teräs's avatar Timo Teräs Committed by Natanael Copa

main/alpine-conf: include wifi regulatory db in modloop

ref #9549

(cherry picked from commit 64c5d784)
parent 8f5360d3
From 74fd3c56ea44e4f2d8e050a21a91820762039212 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
Date: Fri, 15 Feb 2019 13:27:09 +0200
Subject: [PATCH] update-kernel: include regulatory database
---
update-kernel.in | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
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##*/}"
--
2.20.1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine-conf
pkgver=3.8.1
pkgrel=1
pkgrel=2
pkgdesc="Alpine configuration management scripts"
url=http://git.alpinelinux.org/cgit/$pkgname
arch="all"
......@@ -9,6 +9,7 @@ license="MIT"
depends="openrc>=0.24.1-r6 busybox>=1.26.1-r3"
source="https://dev.alpinelinux.org/archive/alpine-conf/alpine-conf-$pkgver.tar.xz
0001-setup-alpine-setup-ntp-before-repos.patch
0001-update-kernel-include-regulatory-database.patch
"
builddir="$srcdir"/$pkgname-$pkgver
......@@ -26,4 +27,5 @@ package() {
}
sha512sums="6aa0f0eaab6ee1ff8f9259d5c4e4634bf6d736a2cb52efb3cbabfdfcdd5dcd81b9fe05073ac16f964e7b74b5006b5f4219b33ab4ff5f984273b3bb48982afd6a alpine-conf-3.8.1.tar.xz
4b1b88b66a0771720e1991534c0d55b17293d0d9c3e4064d4210c2edd2fcbe8f6691bf5336b5492312df6160aad8f17b4bb4f9174efd4bad342472b3ad2a16bc 0001-setup-alpine-setup-ntp-before-repos.patch"
4b1b88b66a0771720e1991534c0d55b17293d0d9c3e4064d4210c2edd2fcbe8f6691bf5336b5492312df6160aad8f17b4bb4f9174efd4bad342472b3ad2a16bc 0001-setup-alpine-setup-ntp-before-repos.patch
544498b30bd57c84521a4fd5fbd45791b9307dcd29532278f45b61fb14d6405b5454e98fb535fd31331793b806ef897e208c3c6f8bc772dbd55ae2c61abcb402 0001-update-kernel-include-regulatory-database.patch"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment