Renamed install script to suit extended use, and added open razer dkms
All checks were successful
bluebuild / Build Custom Image (recipe.yml) (pull_request) Successful in 12m33s

This commit is contained in:
2025-07-13 14:19:17 -04:00
parent 92ea9c9af2
commit b027a47314
3 changed files with 31 additions and 18 deletions

View File

@@ -1,16 +0,0 @@
#!/usr/bin/env bash
# Tell build process to exit if there are any errors.
set -oue pipefail
echo "INFO: grab kernel module"
KERNEL_VER=$(ls /lib/modules | head -n 1)
echo $KERNEL_VER
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 $MODULE_VER -k $KERNEL_VER
sudo dkms install -m $MODULE_VER -k $KERNEL_VER

View File

@@ -0,0 +1,27 @@
#!/usr/bin/env bash
# Tell build process to exit if there are any errors.
set -oue pipefail
echo "INFO: grab kernel module"
KERNEL_VER=$(ls /lib/modules | head -n 1)
echo $KERNEL_VER
echo "INFO: list all modules"
ls /usr/src
echo "INFO: grab xpad modules"
XPAD_MODULE_VER=$(ls /usr/src | grep xpadneo | sed 's/-/\//')
echo $XPAD_MODULE_VER
echo "INFO: grab open razer modules"
RAZER_MODULE_VER=$(ls /usr/src | grep razer | sed -E 's/(.*)-/\1\//')
echo $RAZER_MODULE_VER
echo "INFO: build and install xpadneo"
sudo dkms build -m $XPAD_MODULE_VER -k $KERNEL_VER
sudo dkms install -m $XPAD_MODULE_VER -k $KERNEL_VER
echo "INFO: build and install openrazer"
sudo dkms build -m $RAZER_MODULE_VER -k $KERNEL_VER
sudo dkms install -m $RAZER_MODULE_VER -k $KERNEL_VER

View File

@@ -4,6 +4,7 @@ modules:
nonfree: rpmfusion
files:
- codium.repo
- https://openrazer.github.io/hardware:razer.repo
copr:
- ublue-os/packages
- solopasha/hyprland
@@ -131,8 +132,9 @@ modules:
- gamescope
# for performance view
- mangohud
# dkms for xpadneo
# dkms for xpadneo and open razer
- dkms
- openrazer-meta
# simple editing softare
- avidemux
@@ -186,4 +188,4 @@ modules:
- type: script
scripts:
- install-xpadneo.sh
- installdkmsmodules.sh