All checks were successful
bluebuild / Build Custom Image (recipe.yml) (push) Successful in 9m12s
Reviewed-on: #72 Co-authored-by: Eriq Taing <eriq12@protonmail.com> Co-committed-by: Eriq Taing <eriq12@protonmail.com>
16 lines
503 B
Bash
16 lines
503 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Tell build process to exit if there are any errors.
|
|
set -oue pipefail
|
|
|
|
echo "INFO: grab kernel module"
|
|
KERNEL_VER="$(rpm -qa | grep -P 'kernel-(\d+\.\d+\.\d+)' | sed -E 's/kernel-//')"
|
|
echo $KERNEL_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 openrazer"
|
|
sudo dkms build -m $RAZER_MODULE_VER -k $KERNEL_VER
|
|
sudo dkms install -m $RAZER_MODULE_VER -k $KERNEL_VER |