aboutsummaryrefslogtreecommitdiff
path: root/distro
diff options
context:
space:
mode:
Diffstat (limited to 'distro')
-rwxr-xr-xdistro/cachyos.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/distro/cachyos.sh b/distro/cachyos.sh
index 23e6f91..ad9bb3c 100755
--- a/distro/cachyos.sh
+++ b/distro/cachyos.sh
@@ -1,5 +1,6 @@
#!/bin/sh
set -ex
+THUNDERBOLT=YES
pkglist='cmake
syncthing
@@ -35,5 +36,12 @@ sudo systemctl stop ufw || true
[ -x "$(command -v oksh)" ] || yay -S oksh
-
[ -x "$(command -v dpw)" ] || ./compile/dpw.sh
+
+if [ "$THUNDERBOLT" = "YES" ] ; then
+sudo sh -c '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
+