configurator icon indicating copy to clipboard operation
configurator copied to clipboard

Install udev rules on-demand

Open haata opened this issue 5 years ago • 0 comments

Something like sudo-prompt (https://www.npmjs.com/package/sudo-prompt) can be used to install the udev rules (and then request a udev rescan).

And then if that doesn't work, could even ask for a password to run dfu-util.

Current udev rules

  • https://github.com/kiibohd/controller/blob/master/98-kiibohd.rules
  • SAM-BA rule (possibly useful in the future)
# SAM-BA USB CDC Rule
SUBSYSTEM=="tty", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="6124", GROUP="users", MODE="0666", SYMLINK+="sam-ba"

Commands to run after install udev rules

udevadm control --reload-rules
udevadm trigger --attr-match=subsystem=usb

An example script used in an AppImage bundle: https://github.com/JvanKatwijk/qt-dab/blob/master/appimage/udev-rules-helper

haata avatar Dec 04 '18 05:12 haata