From 25a74f4e397b88570584329592109d6d08462d6b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 7 Aug 2026 11:14:30 +0200 Subject: [PATCH] Stop Tuxedo backlight fix from aborting setup (#6583) The orphaned module cleanup loop was the last statement in the script, so when the glob matched nothing the trailing && list left an exit status of 1. run_logged propagates that, aborting hardware setup on every Tuxedo and Slimbook install. Co-authored-by: Claude Opus 5 (1M context) --- install/hardware/fix-tuxedo-backlight.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install/hardware/fix-tuxedo-backlight.sh b/install/hardware/fix-tuxedo-backlight.sh index caf9803b..9644d310 100644 --- a/install/hardware/fix-tuxedo-backlight.sh +++ b/install/hardware/fix-tuxedo-backlight.sh @@ -11,6 +11,8 @@ if cat /sys/class/dmi/id/sys_vendor 2>/dev/null | grep -qi "TUXEDO\|Slimbook"; t # 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" ] && rm "$f" + if [[ -f $f ]]; then + rm "$f" + fi done fi