mirror of
https://github.com/KDE/kde-linux.git
synced 2025-12-23 16:08:29 -05:00
Add openrazer-daemon
Preinstalls the drivers and deamons for razer hardware. Closes #416
This commit is contained in:
@@ -12,6 +12,7 @@ Packages=archlinux-keyring
|
||||
linux
|
||||
linux-atm
|
||||
linux-firmware
|
||||
linux-headers # For DKMS
|
||||
mkinitcpio
|
||||
mkinitcpio-systemd-tool
|
||||
noto-fonts
|
||||
|
||||
@@ -21,6 +21,7 @@ Packages=acsccid # ACS CCID smart card readers
|
||||
tpm2-tss # TPM support
|
||||
tuned-ppd # Power profiles
|
||||
udev-hid-bpf # Many drawing tablets
|
||||
openrazer-daemon # OpenRazer Drivers etc. for Razer hardware
|
||||
xfsprogs # Manipulating XFS filesystems
|
||||
yubikey-full-disk-encryption # Support for unlocking a FDE LUKS partition with Yubikey hardware authenticators
|
||||
yubikey-manager # CLI tools for managing Yubikey hardware authenticators
|
||||
|
||||
@@ -18,6 +18,13 @@ if [ -z "$kernel_version" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Ensure all DKMS modules are built for this kernel before we generate the initramfs
|
||||
if ! dkms autoinstall -k "$kernel_version"; then
|
||||
echo "Error: DKMS autoinstall failed" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
# NOTE: plymouth MUST be after systemd as per the wiki!
|
||||
cat <<- EOF > mkinitcpio.conf
|
||||
MODULES=(overlay)
|
||||
|
||||
@@ -126,6 +126,12 @@ rm -rf /boot/*
|
||||
## Don't expose any X11 sessions; we're all-in on Wayland.
|
||||
rm -rf /usr/share/xsessions/
|
||||
|
||||
## Get rid of the beefy Kernel Headers as DKMS happens at build time and after that is useless
|
||||
rm -rf \
|
||||
/usr/lib/modules/*/build \
|
||||
/usr/lib/modules/*/vdso \
|
||||
/usr/src/*
|
||||
|
||||
## Replace Falkon with Firefox as the default browser, since that's what we pre-install.
|
||||
sed -i 's/org.kde.falkon.desktop/org.mozilla.firefox.desktop/' /usr/share/applications/kde-mimeapps.list
|
||||
|
||||
|
||||
Reference in New Issue
Block a user