[Makefile]add udevadm control --reload for install

This commit is contained in:
JianjunJiang 2022-01-25 15:25:39 +08:00
parent e71e9b217d
commit f9648357b3
2 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,5 @@
# If rules fail to reload automatically, you can refresh udev rules
# with the command "sudo udevadm control --reload"
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1f3a", ATTRS{idProduct}=="efe8", MODE="666", GROUP="plugdev"
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1f3a", ATTRS{idProduct}=="efe8", TEST=="power/autosuspend", ATTR{power/autosuspend}="-1"
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1f3a", ATTRS{idProduct}=="efe8", MODE="666", GROUP="users" TEST=="power/autosuspend", ATTR{power/autosuspend}="-1"

View File

@ -71,6 +71,7 @@ install:
install -Dm0755 xfel /usr/local/bin/xfel
install -Dm0644 99-xfel.rules /etc/udev/rules.d/99-xfel.rules
install -Dm0644 LICENSE /usr/share/licenses/xfel/LICENSE
udevadm control --reload
clean:
@$(RM) $(DEPS) $(OBJS) $(NAME).exe $(NAME) *~