Add xpadneo properly (#28)
All checks were successful
bluebuild / Build Custom Image (recipe.yml) (push) Successful in 13m20s
All checks were successful
bluebuild / Build Custom Image (recipe.yml) (push) Successful in 13m20s
Reviewed-on: #28 Changed nonfree repo from rpm-fusion to negativo17, and added a script to build xpadneo to kernel and version Co-authored-by: Eriq Taing <eriq12@protonmail.com> Co-committed-by: Eriq Taing <eriq12@protonmail.com>
This commit is contained in:
16
files/scripts/install-xpadneo.sh
Normal file
16
files/scripts/install-xpadneo.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/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
|
Reference in New Issue
Block a user