aboutsummaryrefslogtreecommitdiff
path: root/distro/el9
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2026-01-08 18:14:57 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2026-01-08 18:14:57 -0500
commit60810521fa2ef0d1d866171fc0c207d57dbb6d8a (patch)
treed7d342dbf6e2560fdbcd2c64aeca53229a9978ab /distro/el9
parentca7f8bc63d0b5e552280048d1c7002c965366691 (diff)
downloaddotfiles-60810521fa2ef0d1d866171fc0c207d57dbb6d8a.tar.gz
dotfiles-60810521fa2ef0d1d866171fc0c207d57dbb6d8a.tar.xz
Add ddcutil and thunderbolt rules
Diffstat (limited to 'distro/el9')
-rwxr-xr-xdistro/el912
1 files changed, 11 insertions, 1 deletions
diff --git a/distro/el9 b/distro/el9
index 51036d7..ad9d1d1 100755
--- a/distro/el9
+++ b/distro/el9
@@ -1,6 +1,7 @@
#!/bin/sh
ROCM_ENALBE=NO
NVIDIA_ENABLE=NO
+THUNDERBOLT=NO
if [ "$(id -u)" -eq 0 ] ; then
echo "Run as a normal user"
exit 1
@@ -32,6 +33,7 @@ sudo yum -y install \
buildah \
chromium \
cifs-utils \
+ ddcutil \
evince \
evolution \
evolution-ews \
@@ -63,6 +65,7 @@ sudo yum -y install \
pass \
pass-otp \
pavucontrol \
+ pcsc-lite-devel \
podman \
pv \
pwgen \
@@ -81,7 +84,6 @@ sudo yum -y install \
xkill \
xsetroot \
zstd \
- pcsc-lite-devel \
# https://rpmfusion.org/Configuration
@@ -112,6 +114,14 @@ sudo sh -c 'echo "options v4l2loopback devices=3 video_nr=10,11,12 card_label=\"
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install -y flathub com.obsproject.Studio
+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
+
+
if lspci | grep -qi 'vga.*amd.*navi' && [ $ROCM_ENALBE = YES ] ; then
# https://rocm.docs.amd.com/projects/install-on-linux/en/latest/tutorial/quick-start.html
sudo crb enable