diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2026-01-18 13:39:23 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2026-01-18 13:39:23 -0500 |
| commit | 7cf36f569b550b3554164a8119e61dbbcdee9c58 (patch) | |
| tree | 0add07bedb63d6bf117f93fd1a5f3bd4ca22e1e2 /distro/cachyos.sh | |
| parent | c1ebe84e1591025a26410c4778a166e67f4eacda (diff) | |
| download | dotfiles-7cf36f569b550b3554164a8119e61dbbcdee9c58.tar.gz dotfiles-7cf36f569b550b3554164a8119e61dbbcdee9c58.tar.xz | |
thunderbolt for cachyos...
Diffstat (limited to 'distro/cachyos.sh')
| -rwxr-xr-x | distro/cachyos.sh | 10 |
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 + |
