Skip to content

Instantly share code, notes, and snippets.

@toke
Last active March 22, 2017 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toke/d3b1910220e3d01936627f5e95c0fdea to your computer and use it in GitHub Desktop.
Save toke/d3b1910220e3d01936627f5e95c0fdea to your computer and use it in GitHub Desktop.
Target variant of systemd udev dock hook for dell laptop
SUBSYSTEMS=="usb", SYMLINK="delldock", ATTRS{idVendor}=="413c", ATTRS{idProduct}=="2513", ENV{DEVTYPE}=="usb_device", TAG+="systemd", ENV{SYSTEMD_WANTS}="dock.target"
[Unit]
Description=Docked target
BindsTo=dev-delldock.device
After=dev-delldock.device
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment