diff --git a/ubuntu/bootstrap.sh b/ubuntu/bootstrap.sh index ab49955..d70ccbf 100755 --- a/ubuntu/bootstrap.sh +++ b/ubuntu/bootstrap.sh @@ -99,6 +99,8 @@ step_etc() { if systemctl is-active -q keyd.service; then sudo systemctl restart keyd.service && info "restarted keyd"; fi ;; logid.cfg) if systemctl is-active -q logid.service; then sudo systemctl restart logid.service && info "restarted logid"; fi ;; + udev/rules.d/*) + sudo udevadm control --reload-rules && sudo udevadm trigger --action=change && info "reloaded udev rules" ;; esac done } diff --git a/ubuntu/etc/udev/rules.d/70-ulx3s.rules b/ubuntu/etc/udev/rules.d/70-ulx3s.rules new file mode 100644 index 0000000..70ec3b0 --- /dev/null +++ b/ubuntu/etc/udev/rules.d/70-ulx3s.rules @@ -0,0 +1,5 @@ +# Managed by ~/nixos/ubuntu (bootstrap.sh etc). Local edits get overwritten. +# ULX3S FPGA board (FTDI FT231X, 0403:6015): Allow opening withoug root. +# uaccess grants the logged-in user, and plugdev covers ssh/non-seat sessions. +# Must sort before 73-seat-late.rules or the uaccess tag is ignored. +SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", MODE="0664", GROUP="plugdev", TAG+="uaccess"