Skip to content

Commit

Permalink
Merge pull request #88 from hnez/udev-load-sg
Browse files Browse the repository at this point in the history
contrib/udev: explicitly load the sg module in the udev rule
  • Loading branch information
SmithChart authored Jan 30, 2025
2 parents d628efe + c6557db commit 9b4e4bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/udev/99-usbsdmux.rules
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# USB-SD-Mux
ACTION=="add", SUBSYSTEM=="scsi_generic", KERNEL=="sg[0-9]*", ATTRS{manufacturer}=="Pengutronix", ATTRS{product}=="usb-sd-mux*", SYMLINK="usb-sd-mux/id-$attr{serial}", TAG+="uaccess", GROUP="plugdev"
ACTION=="add", SUBSYSTEM=="scsi_generic", KERNEL=="sg[0-9]*", ATTRS{manufacturer}=="Linux Automation GmbH", ATTRS{product}=="usb-sd-mux*", SYMLINK="usb-sd-mux/id-$attr{serial}", TAG+="uaccess", GROUP="plugdev"
ACTION=="add", SUBSYSTEM=="usb", ATTRS{manufacturer}=="Pengutronix", ATTRS{product}=="usb-sd-mux*", RUN{builtin}+="kmod load sg"
ACTION=="add", SUBSYSTEM=="usb", ATTRS{manufacturer}=="Linux Automation GmbH", ATTRS{product}=="usb-sd-mux*", RUN{builtin}+="kmod load sg"

0 comments on commit 9b4e4bc

Please sign in to comment.