2
0
mirror of https://github.com/cilynx/rtl88x2bu synced 2025-08-22 02:01:55 +00:00

feat: Find available Kernels with helper function

This commit is contained in:
Max Görner 2025-05-09 09:11:54 +02:00
parent 2ed2956397
commit 384cc710e6

View File

@ -42,8 +42,7 @@ function put_sources_in_place() {
function deploy_driver() {
local VERSION="$1"
sudo dkms "add" -m rtl88x2bu -v "${VERSION}"
find /boot -maxdepth 1 -iname "initrd.img*" |
cut -d- -f2- |
list-kernels |
while read -r kernel; do
# xargs -n1 sudo dkms install -m rtl88x2bu -v 5.8.7.1 -k
for action in build install; do
@ -53,4 +52,9 @@ function deploy_driver() {
sudo modprobe 88x2bu
}
function list-kernels() {
find /boot -maxdepth 1 -iname "initrd.img*" |
cut -d- -f2
}
main "$@"