Created
March 22, 2017 19:26
-
-
Save toke/f24eead85c390fbed30c6d0749620bc3 to your computer and use it in GitHub Desktop.
Dell dock udev, systemd hook stuff for linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SUBSYSTEMS=="usb", SYMLINK="delldock", ATTRS{idVendor}=="413c", ATTRS{idProduct}=="2513", ENV{DEVTYPE}=="usb_device", TAG+="systemd", ENV{SYSTEMD_WANTS}="dock.service" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description="Docking event" | |
StartLimitAction=none | |
BindsTo=dev-delldock.device | |
After=dev-delldock.device | |
[Service] | |
ExecStart=/home/toke/bin/dock dock | |
ExecStop=/home/toke/bin/dock undock | |
RemainAfterExit=yes | |
KillMode=none | |
Type=oneshot | |
User=toke |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment