install: split and harden hardware config scripts

This commit is contained in:
Ryan Hughes committed 2026-06-04 18:35:01 -04:00
1 parent 6056f8800c
commit d12d449b03
22 files changed
+95 -117

No files matched your search

@@ -6,10 +6,11 @@ if cat /sys/class/dmi/id/sys_vendor 2>/dev/null | grep -qi "TUXEDO\|Slimbook"; t
# Blacklist the legacy clevo_xsm_wmi module which conflicts with the tuxedo-drivers
# clevo_wmi module. When clevo_xsm_wmi loads first, it grabs the Clevo WMI GUIDs,
# preventing tuxedo-drivers from initializing the keyboard backlight properly.
echo "blacklist clevo_xsm_wmi" | sudo tee /etc/modprobe.d/blacklist-clevo-xsm-wmi.conf > /dev/null
mkdir -p /etc/modprobe.d
echo "blacklist clevo_xsm_wmi" > /etc/modprobe.d/blacklist-clevo-xsm-wmi.conf
# Remove any orphaned clevo_xsm_wmi module files not managed by a package
for f in /lib/modules/*/extra/clevo-xsm-wmi.ko; do
[ -f "$f" ] && sudo rm "$f"
[ -f "$f" ] && rm "$f"
done
fi