Separated installdkmsmodules.sh into separate scripts and removed razer package
This commit is contained in:
16
files/scripts/installrazermodule.sh
Normal file
16
files/scripts/installrazermodule.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 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
|
||||
Reference in New Issue
Block a user