-
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: Update installation of udev rules
Related #2263
- Loading branch information
Showing
1 changed file
with
4 additions
and
6 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 |
---|---|---|
@@ -1,23 +1,21 @@ | ||
# Makefile to copy Solaar udev rules to the appropriate directory | ||
|
||
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 install_uinput uninstall | ||
.PHONY: install_udev install_udev_uinput uninstall_udev | ||
|
||
install: | ||
install_udev: | ||
@echo "Copying Solaar udev rules to $(UDEV_RULES_DEST)" | ||
sudo cp $(UDEV_RULES_SOURCE) $(UDEV_RULES_DEST) | ||
sudo udevadm control --reload-rules | ||
|
||
install_udev_uinput: | ||
@echo "Copying Solaar udev rules to $(UDEV_RULES_DEST)" | ||
@echo "Copying Solaar udev rules (uinput) to $(UDEV_RULES_DEST)" | ||
sudo cp $(UDEV_RULES_SOURCE_UINPUT) $(UDEV_RULES_DEST) | ||
sudo udevadm control --reload-rules | ||
|
||
uninstall: | ||
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 |