-
Notifications
You must be signed in to change notification settings - Fork 426
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
udev: Simplify installation of udev rules
* Simplify installation of udev rules Fixes #2263 * udev: Shorten udev installation description Related #2263 * udev: Shorten udev installation description Related #2263 * udev: Update installation of udev rules Related #2263 * Update docs/installation.md Co-authored-by: Peter F. Patel-Schneider <[email protected]> * Update Makefile Co-authored-by: Peter F. Patel-Schneider <[email protected]> * Update Makefile Co-authored-by: Peter F. Patel-Schneider <[email protected]> * Update docs/installation.md Co-authored-by: Peter F. Patel-Schneider <[email protected]> * Update docs/installation.md Co-authored-by: Peter F. Patel-Schneider <[email protected]> * Update docs/installation.md Co-authored-by: Peter F. Patel-Schneider <[email protected]> --------- Co-authored-by: Peter F. Patel-Schneider <[email protected]>
- Loading branch information
Showing
2 changed files
with
37 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
UDEV_RULE_FILE = 42-logitech-unify-permissions.rules | ||
UDEV_RULES_SOURCE := rules.d/$(UDEV_RULE_FILE) | ||
UDEV_RULES_SOURCE_UINPUT := rules.d-uinput/$(UDEV_RULE_FILE) | ||
UDEV_RULES_DEST := /etc/udev/rules.d/ | ||
|
||
.PHONY: install_udev install_udev_uinput uninstall_udev | ||
|
||
install_udev: | ||
@echo "Copying Solaar udev rule to $(UDEV_RULES_DEST)" | ||
sudo cp $(UDEV_RULES_SOURCE) $(UDEV_RULES_DEST) | ||
sudo udevadm control --reload-rules | ||
|
||
install_udev_uinput: | ||
@echo "Copying Solaar udev rule (uinput) to $(UDEV_RULES_DEST)" | ||
sudo cp $(UDEV_RULES_SOURCE_UINPUT) $(UDEV_RULES_DEST) | ||
sudo udevadm control --reload-rules | ||
|
||
uninstall_udev: | ||
@echo "Removing Solaar udev rules from $(UDEV_RULES_DEST)" | ||
sudo rm -f $(UDEV_RULES_DEST)/$(UDEV_RULE_FILE) | ||
sudo udevadm control --reload-rules |
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