]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Revert "Use add or remove instead of change"
authorPhillip Berndt <phillip.berndt@googlemail.com>
Tue, 24 Jan 2023 11:52:53 +0000 (12:52 +0100)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Tue, 24 Jan 2023 11:52:53 +0000 (12:52 +0100)
This reverts commit 14f5a9452122f58d083a0a6162adc60d9ef9b697.
The revert fixes #324

Makefile

index bc4ebabf44090440001af07a546e9c0692eda03f..e184faaf8ffa288ffe1726b3a2f65a0cb9735cad 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -134,7 +134,7 @@ endif
 install_udev:
        $(if $(UDEV_RULES_DIR),,$(error UDEV_RULES_DIR is not defined))
        mkdir -p ${DESTDIR}/${UDEV_RULES_DIR}/
 install_udev:
        $(if $(UDEV_RULES_DIR),,$(error UDEV_RULES_DIR is not defined))
        mkdir -p ${DESTDIR}/${UDEV_RULES_DIR}/
-       echo 'ACTION=="add|remove", SUBSYSTEM=="drm", RUN+="$(if $(findstring systemd, $(MAKECMDGOALS)),/bin/systemctl start --no-block autorandr.service,${PREFIX}/bin/autorandr --batch --change --default default)"' > ${DESTDIR}/${UDEV_RULES_DIR}/40-monitor-hotplug.rules
+       echo 'ACTION=="change", SUBSYSTEM=="drm", RUN+="$(if $(findstring systemd, $(MAKECMDGOALS)),/bin/systemctl start --no-block autorandr.service,${PREFIX}/bin/autorandr --batch --change --default default)"' > ${DESTDIR}/${UDEV_RULES_DIR}/40-monitor-hotplug.rules
        @echo
        @echo "To activate the udev rules, run this command as root:"
        @echo "    udevadm control --reload-rules"
        @echo
        @echo "To activate the udev rules, run this command as root:"
        @echo "    udevadm control --reload-rules"