diff options
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 + |
