From 3fc537ef5e6023a332574126e743a79efb3cd20f Mon Sep 17 00:00:00 2001 From: Eriq Taing Date: Mon, 23 Jun 2025 21:40:41 -0400 Subject: [PATCH] Change from hard coded versions to hopefully find what is needed to build --- files/scripts/install-xpadneo.sh | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/files/scripts/install-xpadneo.sh b/files/scripts/install-xpadneo.sh index 3893928..0994751 100644 --- a/files/scripts/install-xpadneo.sh +++ b/files/scripts/install-xpadneo.sh @@ -3,18 +3,14 @@ # Tell build process to exit if there are any errors. set -oue pipefail -echo "INFO: kernel module" -dnf list --installed | grep kernel.x86_64 +echo "INFO: grab kernel module" +KERNEL_VER=${ls /lib/modules | head -n 1} +echo $KERNEL_VER -echo "INFO: uname -r output:" -uname -r - -echo "INFO: list /lib/modules/" -ls /lib/modules - -echo "INFO: xpad modules in /usr/src" -ls /usr/src | grep xpad +echo "INFO: grab xpad modules" +MODULE_VER=${ls /usr/src | grep xpadneo | sed 's/-/\//'} +echo $MODULE_VER echo "INFO: build and install xpadneo" -sudo dkms build -m xpadneo/0.9.7 -k 6.14.11-300.fc42.x86_64 -sudo dkms install -m xpadneo/0.9.7 -k 6.14.11-300.fc42.x86_64 \ No newline at end of file +sudo dkms build -m $MODULE_VER -k $KERNEL_VER +sudo dkms install -m $MODULE_VER -k $KERNEL_VER \ No newline at end of file