From 06f321e988a4bda58075008bf828745fe0f6d5fd Mon Sep 17 00:00:00 2001 From: Wessel klein Snakenborg <100232604+wessel-novacustom@users.noreply.github.com> Date: Tue, 12 Sep 2023 13:43:37 +0200 Subject: [PATCH] Add files via upload --- kb.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 kb.sh diff --git a/kb.sh b/kb.sh new file mode 100644 index 0000000..27006e3 --- /dev/null +++ b/kb.sh @@ -0,0 +1,25 @@ +#!/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