2023-09-12 13:43:37 +02:00
|
|
|
#!/bin/bash
|
|
|
|
apt install -y git dkms build-essential linux-headers-$(uname -r)
|
2023-09-12 15:03:37 +02:00
|
|
|
rm -rf ~/clevo-keyboard
|
2023-09-12 13:43:37 +02:00
|
|
|
rmmod clevo_acpi
|
|
|
|
rmmod clevo_wmi
|
|
|
|
rmmod tuxedo_io
|
|
|
|
rmmod tuxedo_keyboard
|
|
|
|
sudo pacman -S base-devel
|
|
|
|
sudo pacman -S dkms
|
|
|
|
pamac install $(pamac list --quiet --installed | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-headers"}' ORS=' ')
|
|
|
|
dnf -y group install "C Development Tools and Libraries"
|
|
|
|
dnf -y group install "Development Tools"
|
|
|
|
dnf -y install git
|
|
|
|
dnf -y install dkms
|
|
|
|
dnf -y install kernel-headers
|
|
|
|
dnf -y install kernel-devel
|
|
|
|
git clone https://github.com/wessel-novacustom/clevo-keyboard
|
2023-09-12 15:03:37 +02:00
|
|
|
cd clevo-keyboard/
|
2023-09-12 13:43:37 +02:00
|
|
|
make clean
|
|
|
|
sudo make dkmsinstall
|
|
|
|
echo tuxedo_keyboard >> /etc/modules
|
|
|
|
modprobe tuxedo_keyboard
|
|
|
|
echo "options tuxedo_keyboard color=WHITE" > /etc/modprobe.d/tuxedo_keyboard.conf
|
2023-09-12 15:03:37 +02:00
|
|
|
rm -rf ~/clevo-keyboard
|
2023-09-12 13:43:37 +02:00
|
|
|
exit 0
|