Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create build-kmod-rtl8821au.sh #233

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions build-kmod-rtl8821au.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh

set -oeux pipefail

ARCH="$(rpm -E '%_arch')"
KERNEL="$(rpm -q "${KERNEL_NAME}" --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"
RELEASE="$(rpm -E '%fedora')"

if [[ "${KERNEL}" =~ "6.8" ]]; then
echo "SKIPPED BUILD of rtl8814au: compile failure on kernel 6.8 as of 2024-03-17"
exit 0
fi

cp /tmp/ublue-os-akmods-addons/rpmbuild/SOURCES/_copr_ublue-os-akmods.repo /etc/yum.repos.d/

dnf install -y \
akmod-rtl8821au-*.fc${RELEASE}.${ARCH}

Check warning on line 17 in build-kmod-rtl8821au.sh

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

build-kmod-rtl8821au.sh#L17

Double quote to prevent globbing and word splitting.
akmods --force --kernels "${KERNEL}" --kmod rtl8821au
modinfo /usr/lib/modules/${KERNEL}/extra/rtl8821au/rtl8821au.ko.xz > /dev/null \

Check warning on line 19 in build-kmod-rtl8821au.sh

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

build-kmod-rtl8821au.sh#L19

Double quote to prevent globbing and word splitting.
|| (find /var/cache/akmods/rtl8821au/ -name \*.log -print -exec cat {} \; && exit 1)

rm -f /etc/yum.repos.d/_copr_ublue-os-akmods.repo