diff --git a/files/scripts/install-xpadneo.sh b/files/scripts/install-xpadneo.sh deleted file mode 100644 index a6c8930..0000000 --- a/files/scripts/install-xpadneo.sh +++ /dev/null @@ -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 \ No newline at end of file diff --git a/files/scripts/installdkmsmodules.sh b/files/scripts/installdkmsmodules.sh new file mode 100644 index 0000000..95124d1 --- /dev/null +++ b/files/scripts/installdkmsmodules.sh @@ -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 \ No newline at end of file diff --git a/recipes/components/dnf-module.yml b/recipes/components/dnf-module.yml index 3482d07..0c40548 100644 --- a/recipes/components/dnf-module.yml +++ b/recipes/components/dnf-module.yml @@ -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 \ No newline at end of file + - installdkmsmodules.sh \ No newline at end of file