Skip to content

Instantly share code, notes, and snippets.

@JeremieRapin
Created February 6, 2020 19:48
Show Gist options
  • Save JeremieRapin/354dfc4e3e9c3bfc56567378bc89e09d to your computer and use it in GitHub Desktop.
Save JeremieRapin/354dfc4e3e9c3bfc56567378bc89e09d to your computer and use it in GitHub Desktop.
/etc/udev/rules.d/hifi.rules
ACTION=="remove", SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", ATTRS{idProduct}=="0110", RUN+="/bin/systemctl stop spocon"
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", ATTRS{idProduct}=="0110", RUN+="/bin/systemctl start spocon"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment