mirror of
https://github.com/cilynx/rtl88x2bu
synced 2025-08-30 05:47:47 +00:00
feat: Find available Kernels with helper function
This commit is contained in:
parent
2ed2956397
commit
384cc710e6
@ -42,8 +42,7 @@ function put_sources_in_place() {
|
|||||||
function deploy_driver() {
|
function deploy_driver() {
|
||||||
local VERSION="$1"
|
local VERSION="$1"
|
||||||
sudo dkms "add" -m rtl88x2bu -v "${VERSION}"
|
sudo dkms "add" -m rtl88x2bu -v "${VERSION}"
|
||||||
find /boot -maxdepth 1 -iname "initrd.img*" |
|
list-kernels |
|
||||||
cut -d- -f2- |
|
|
||||||
while read -r kernel; do
|
while read -r kernel; do
|
||||||
# xargs -n1 sudo dkms install -m rtl88x2bu -v 5.8.7.1 -k
|
# xargs -n1 sudo dkms install -m rtl88x2bu -v 5.8.7.1 -k
|
||||||
for action in build install; do
|
for action in build install; do
|
||||||
@ -53,4 +52,9 @@ function deploy_driver() {
|
|||||||
sudo modprobe 88x2bu
|
sudo modprobe 88x2bu
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function list-kernels() {
|
||||||
|
find /boot -maxdepth 1 -iname "initrd.img*" |
|
||||||
|
cut -d- -f2
|
||||||
|
}
|
||||||
|
|
||||||
main "$@"
|
main "$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user