mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
26 lines
820 B
Bash
26 lines
820 B
Bash
|
#!/bin/bash
|
||
|
apt install -y git dkms build-essential linux-headers-$(uname -r)
|
||
|
rm -rf ~/tuxedo-keyboard
|
||
|
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
|
||
|
cd tuxedo-keyboard/
|
||
|
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
|
||
|
rm -rf ~/tuxedo-keyboard
|
||
|
exit 0
|