Add xpadneo properly #28

Merged
eriq12 merged 23 commits from add-xpadneo into main 2025-06-23 22:48:46 -04:00
5 changed files with 39 additions and 7 deletions
Showing only changes of commit 3fc537ef5e - Show all commits

View File

@@ -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
sudo dkms build -m $MODULE_VER -k $KERNEL_VER
sudo dkms install -m $MODULE_VER -k $KERNEL_VER