aboutsummaryrefslogtreecommitdiff
path: root/distro
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2025-07-04 10:37:56 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2025-07-04 10:37:56 -0400
commit993693ea161a37ef55ed9683387c21e8adda4d24 (patch)
tree21e3092da7e568378babaf0360d691ae24d2d659 /distro
parent22688828c25a348e2bcb2cc0d559754da2b5b8d7 (diff)
downloaddotfiles-993693ea161a37ef55ed9683387c21e8adda4d24.tar.gz
dotfiles-993693ea161a37ef55ed9683387c21e8adda4d24.tar.xz
Auto allow thunderbolt
Diffstat (limited to 'distro')
-rw-r--r--distro/devuan.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/distro/devuan.sh b/distro/devuan.sh
index 8e32dbb..8348ecf 100644
--- a/distro/devuan.sh
+++ b/distro/devuan.sh
@@ -42,6 +42,7 @@ PACKAGES="${PACKAGES:-yes}"
FONTS="${FONTS:-yes}"
DWM="${DWM:-no}"
RUSTICL="${RUSTICL:-yes}"
+THUNDERBOLT="${THUNDERBOLT:-yes}"
@@ -80,6 +81,13 @@ sudo apt install -y git curl \
fi
+if [ "$THUNDERBOLT" = "yes" ] ; then
+cat > /etc/udev/rules.d/99-removable.rules <<EOF
+# /etc/udev/rules.d/99-removable.rules
+ACTION=="add", SUBSYSTEM=="thunderbolt", ATTR{authorized}=="0", ATTR{authorized}="1"
+EOF
+fi
+
if [ "$RUSTICL" = "yes" ] ; then
sudo apt install -y \
mesa-opencl-icd