Update kb.sh

This commit is contained in:
Wessel klein Snakenborg 2023-09-12 15:03:37 +02:00 committed by GitHub
parent 18fabb59b6
commit 324aec11d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

6
kb.sh
View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
apt install -y git dkms build-essential linux-headers-$(uname -r) apt install -y git dkms build-essential linux-headers-$(uname -r)
rm -rf ~/tuxedo-keyboard rm -rf ~/clevo-keyboard
rmmod clevo_acpi rmmod clevo_acpi
rmmod clevo_wmi rmmod clevo_wmi
rmmod tuxedo_io rmmod tuxedo_io
@ -15,11 +15,11 @@ dnf -y install dkms
dnf -y install kernel-headers dnf -y install kernel-headers
dnf -y install kernel-devel dnf -y install kernel-devel
git clone https://github.com/wessel-novacustom/clevo-keyboard git clone https://github.com/wessel-novacustom/clevo-keyboard
cd tuxedo-keyboard/ cd clevo-keyboard/
make clean make clean
sudo make dkmsinstall sudo make dkmsinstall
echo tuxedo_keyboard >> /etc/modules echo tuxedo_keyboard >> /etc/modules
modprobe tuxedo_keyboard modprobe tuxedo_keyboard
echo "options tuxedo_keyboard color=WHITE" > /etc/modprobe.d/tuxedo_keyboard.conf echo "options tuxedo_keyboard color=WHITE" > /etc/modprobe.d/tuxedo_keyboard.conf
rm -rf ~/tuxedo-keyboard rm -rf ~/clevo-keyboard
exit 0 exit 0